Why does this not work?

alain alainpoint at yahoo.fr
Fri Feb 2 07:41:48 EST 2007


I tried the following:

myobj=object()
myobj.newattr=5

results in:


Traceback (most recent call last):
  File "<interactive input>", line 1, in ?
AttributeError: 'object' object has no attribute 'newattr'

Any idea?


Alain




More information about the Python-list mailing list