|arkanes||ironfroggy: 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|
|ironfroggy||arkanes: 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 :)|
|ironfroggy||arkanes: i meant that the class objects themselves ("either honestly, or effectively") inherit it from type.|
|arkanes||ironfroggy: 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.
|arkanes||ironfroggy: 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|
|CSWookie||so, ironfroggy, this decorator that enforces purity in functions.|
How's that working out?
|ironfroggy||little progress. it can verify you dont use functions outside a whitelist|
but exactly what to put in the whitelist im not sure yet.
|CSWookie||Can it also recognize functions that have been declared pure via wrapper?|
Or is that the whitelist?
|shriphani||can someone assist me in writing a function that gives the y intercept ?|
|ironfroggy||well, you can add them to the whitelist.|
|shriphani||of a straight line|
|ironfroggy||but i will make it automatically recognize them, yes.|
|CSWookie||shriphani: Ih it's horizontal, it's a constant.|
shriphani: If it's vertical, there is none.
ironfroggy: That would be super keen.
|shriphani||CSWookie, 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
|CSWookie||shriphani: Well, I've handled 2 of the 3 cases already :-)|
I forget, how do I get the traceback?
|ironfroggy||CSWookie: yeah i need to find time to put to it|
|CSWookie||ironfroggy: I heard that.|
Of the last exception?
|action||shriphani ponders over this......|
|shriphani||ponders over this......|
and yeah is there any way to call a function if i dun use the interpreter ?
|triplah_w||can 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?