From: Khalid Z. <kz...@gm...> - 2006-08-25 17:56:59
|
Notice that current development versions of jython allow attributes to be set on builtin types: Jython2.2a1 >>> int.x = 5 >>> int.x 5 Whereas cpython doesn't allow this: Python2.4.2 >>> int.x = 5 Traceback (most recent call last): File "<stdin>", line 1, in ? TypeError: can't set attributes of built-in/extension type 'int' Any idea if this is a feature where the jython implementation is an intentional hypergeneralization, or if this is just a bug? Background is playing with a fix for http://www.jython.org/bugs/1506749 to make instance __dict__'s assignable, and wondering where to put the boundaries. - kz |