Eric Snow added the comment:

In Python 2 the code example generates an old-style class.  When I tried it 
with a new style class, it worked fine:

class Wrapper(object):
        @staticmethod
        def __getattr__(item):
                return repr(item) # dummy

a = Wrapper()
print(a.foo)
# 'foo'

Chalk this up to another reason to move to Python 3.  <wink>

----------
nosy: +eric.snow
resolution:  -> rejected
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15885>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to