#python - Fri 23 Mar 2007 between 00:09 and 00:37

NY Lost Funds



arkanesironfroggy: instances don't inherit a classes __call__
ironfroggy_chris_: that would be more appropriate for #twisted.web, or possibly #divmod
|Crys|_chris_: you can check if something is callable by using callable() or simply call it and catch the error
ironfroggyarkanes: i didnt say they did
_chris_ironfroggy: i've been lurking in #twisted.web but there isn't much chatter. i'll try over on #divmod. thanks :)
ironfroggyarkanes: i meant that the class objects themselves ("either honestly, or effectively") inherit it from type.
arkanesironfroggy: he's talking about calling it on the instance
ironfroggy_chris_: have you said anything on #twisted.web to initiate chatter?
arkanes: oh, i see.
arkanesironfroggy: or at least that is what he wrote
ironfroggy: he may mean something other than that, of course
_chris_ironfroggy: yup... i'll see if someone says anything
CSWookieso, ironfroggy, this decorator that enforces purity in functions.
How's that working out?
ironfroggylittle progress. it can verify you dont use functions outside a whitelist
but exactly what to put in the whitelist im not sure yet.
CSWookieCan it also recognize functions that have been declared pure via wrapper?
Or is that the whitelist?
shriphanican someone assist me in writing a function that gives the y intercept ?
ironfroggywell, you can add them to the whitelist.
shriphaniof a straight line
ironfroggybut i will make it automatically recognize them, yes.
CSWookieshriphani: Ih it's horizontal, it's a constant.
shriphani: If it's vertical, there is none.
ironfroggy: That would be super keen.
shriphaniCSWookie, just a line with a finite slope
i know how to do it in real life....... but i dunno how to sorta obtain the equation in python
CSWookieshriphani: Well, I've handled 2 of the 3 cases already :-)
I forget, how do I get the traceback?
ironfroggyCSWookie: yeah i need to find time to put to it
CSWookieironfroggy: I heard that.
Of the last exception?
actionshriphani ponders over this......
shriphaniponders over this......
and yeah is there any way to call a function if i dun use the interpreter ?
triplah_wcan anyone make sense of this?
cur.executemany('insert into lexicon (name,count,doccount) values (?,?,?)',tuple(self.lexicon[d] for d in sorted(self.lexicon)))
pysqlite2.dbapi2.IntegrityError: column name is not unique
i have unique column names...
ahh the colum "name" has a non-unique value?
given that self.lexicon is a dict, how could this be possible?

Page: 3 10 17 24 31 38 45 52 59 66 

IrcArchive

NY Lost Funds