homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author segfaulthunter
Recipients daniel.urban, michael.foord, segfaulthunter
Date 2011年02月20日.12:48:24
SpamBayes Score 1.1290244e-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

AltStyle によって変換されたページ (->オリジナル) /