Message128904
Apparently another way to get getattr_static to execute code in Python 2.3rc3 is simply the following.
>>> class Foo:
... @property
... def __dict__(self):
... print("Hello, World.")
... return {}
...
>>> import inspect
>>> inspect.getattr_static(Foo(), 'a')
Hello, World.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/name/opt/lib/python3.2/inspect.py", line 1130, in getattr_static
raise AttributeError(attr)
AttributeError: a
>>> |
|
Date |
User |
Action |
Args |
2011-02-20 12:48:25 | segfaulthunter | set | recipients:
+ segfaulthunter, michael.foord, daniel.urban |
2011-02-20 12:48:25 | segfaulthunter | set | messageid: <1298206105.45.0.63301802165.issue11133@psf.upfronthosting.co.za> |
2011-02-20 12:48:24 | segfaulthunter | link | issue11133 messages |
2011-02-20 12:48:24 | segfaulthunter | create | |
|