Author segfaulthunter
Recipients daniel.urban, michael.foord, segfaulthunter
Date 2011-02-20.12:48:24
SpamBayes Score 1.12902e-06
Marked as misclassified No
Message-id <1298206105.45.0.63301802165.issue11133@psf.upfronthosting.co.za>
In-reply-to
Content
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
>>>
History
Date User Action Args
2011-02-20 12:48:25segfaulthuntersetrecipients: + segfaulthunter, michael.foord, daniel.urban
2011-02-20 12:48:25segfaulthuntersetmessageid: <1298206105.45.0.63301802165.issue11133@psf.upfronthosting.co.za>
2011-02-20 12:48:24segfaulthunterlinkissue11133 messages
2011-02-20 12:48:24segfaulthuntercreate