Message170076
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> |
|
Date |
User |
Action |
Args |
2012-09-09 03:04:19 | eric.snow | set | recipients:
+ eric.snow, Albert.Zeyer |
2012-09-09 03:04:18 | eric.snow | set | messageid: <1347159858.1.0.205137504837.issue15885@psf.upfronthosting.co.za> |
2012-09-09 03:04:17 | eric.snow | link | issue15885 messages |
2012-09-09 03:04:16 | eric.snow | create | |
|