Message142232
>>> class Foo:
... __slots__ = ['foo']
... foo = None
...
>>> x = Foo()
>>> x.foo
>>> x.foo = 5
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'Foo' object attribute 'foo' is read-only |
|
Date |
User |
Action |
Args |
2011-08-16 22:44:42 | pitrou | set | recipients:
+ pitrou, benjamin.peterson |
2011-08-16 22:44:42 | pitrou | set | messageid: <1313534682.05.0.56196463174.issue12766@psf.upfronthosting.co.za> |
2011-08-16 22:44:41 | pitrou | link | issue12766 messages |
2011-08-16 22:44:41 | pitrou | create | |
|