>>> 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. -- http://mail.python.org/mailman/listinfo/python-list