function-class frustration
castironpi at gmail.com
castironpi at gmail.com
Sat Mar 22 04:19:59 EDT 2008
>>> FunctionType.__eq__= 0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: can't set attributes of built-in/extension type 'function'
>>> type( 'F', ( FunctionType, ), { '__eq__': e } )
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: type 'function' is not an acceptable base type
On the other hand, are you willing to make changes to the console?
How big and what? I was thinking of __ to keep the second-to-last
most recent command.
More information about the Python-list
mailing list