Re: 'classmethod' object has only read-only attributes

2009-11-25 Thread Peter Otten
> u...@host:~> python ~/tmp/t.py > Traceback (most recent call last): > File "/home/user/tmp/t.py", line 1, in > class Foo(object): > File "/home/user/tmp/t.py", line 5, in Foo > bar.myattr='test' > TypeError: 'classmethod

'classmethod' object has only read-only attributes

2009-11-25 Thread Thomas Guettler
/tmp/t.py", line 1, in class Foo(object): File "/home/user/tmp/t.py", line 5, in Foo bar.myattr='test' TypeError: 'classmethod' object has only read-only attributes (assign to .myattr) -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettl