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 gregmi
Recipients
Date 2002年03月20日.18:56:23
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
If one writes the following code (tested on Python 
2.1, 2.2 on platforms MacOS X Server, MacOS X, Windows 
98, NT, 2000) one can easily produce several "errors".
MacOS X, MacOS X Server (Python 2.1, 2.2)
------------------------------------------
class A:
 def __getattr__(self, name):
 print name,
 return A()
------------------------------------------
>>> a=A()
>>> a.foo
Segmentation fault
Win98, NT, 2000 (Python 2.1, 2.2)
------------------------------------------
class A:
 def __getattr__(self, name):
 print name
 return A()
------------------------------------------
>>> a=A()
>>> a.foo
foo
__repr__ __call__ __call__ __call__ ... ad inf
History
Date User Action Args
2007年08月23日 13:59:56adminlinkissue532646 messages
2007年08月23日 13:59:56admincreate

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