>>>class foo(object):
... __slots__ = ["bar"]
...
>>>foo.bar
<member 'foo' of 'foo' objects>
>>> f = foo()
>>> f.bar
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: bar
Ironpython beta8
>>>class foo(object):
... __slots__ = ["bar"]
>>>foo.bar
<property# foo on Object_1>
>>> f = foo()
>>> f.bar
Traceback (most recent call last):
File , line 0, in <stdin>##42
File , line 0, in get_bar##43
AttributeError: '<class '__main__.foo'>' object has no attribute 'bar'
_______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
