[issue7659] Attribute assignment on object() instances raises wrong exception
Pascal Chambon
report at bugs.python.org
Fri Jan 8 19:37:44 CET 2010
Pascal Chambon <chambon.pascal at gmail.com> added the comment:
Allright, I suppose it's some kind of optimization ?
We get a proper error when we do :
>>> object.test=1
Traceback (most recent call last):
File "<pyshell#6>", line 1, in <module>
object.test=1
TypeError: can't set attributes of built-in/extension type 'object'
>>>
So we'd need a similar error when trying to assign to object instances, too...
I fear I won't be able to help with finding a patch alas, it's a little too deep into the python core for me :p
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7659>
_______________________________________
More information about the Python-bugs-list
mailing list