[issue1615] descriptor protocol bug

ganges master report at bugs.python.org
Wed Dec 3 13:20:41 CET 2008


ganges master <gangesmaster at users.sourceforge.net> added the comment:

here's a short example of the bug

>>> class Foo(object):
...   def __getattr__(self, name): 
...     return 42
...   @property
...   def bacon(self): 
...     return int.lalala
...   @property
...   def eggs(self): 
...     return 17
... 
>>> f = Foo()
>>> f.bacon   # raises an AttributeError, and silently ignores it
42
>>> f.eggs
17
>>> 

are there any news in this front?

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1615>
_______________________________________


More information about the Python-bugs-list mailing list