[Python-bugs-list] [ python-Bugs-752221 ] print in __getattr__ causes seg fault
SourceForge.net
noreply@sourceforge.net
Tue, 10 Jun 2003 20:09:45 -0700
Bugs item #752221, was opened at 2003-06-10 16:58
Message generated for change (Comment added) made by rhettinger
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=752221&group_id=5470
Category: Python Interpreter Core
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Christopher K. Paulicka (paulicka)
Assigned to: Nobody/Anonymous (nobody)
Summary: print in __getattr__ causes seg fault
Initial Comment:
[~/site-packages/WorldPlay/] paulicka@Sliver-14:56:32
$ python
Python 2.3a2+ (#4, Mar 2 2003, 17:13:46)
[GCC 3.1 20020420 (prerelease)] on darwin
Type "help", "copyright", "credits" or "license" for more
information.
>>> class A:
... def __getattr__(self,name):
... return 3
...
>>> a=A()
>>> a.c
3
>>> class B:
... def __getattr__(self,name):
... print self, name
... return 3
...
>>> b=B()
>>> b.c
Segmentation fault
[~/site-packages/WorldPlay/] paulicka@Sliver-14:57:14
$
$ uname -a
Darwin Sliver.local. 6.6 Darwin Kernel Version 6.6: Thu
May 1 21:48:54 PDT 2003; root:xnu/xnu-344.34.obj~1/
RELEASE_PPC Power Macintosh powerpc
----------------------------------------------------------------------
>Comment By: Raymond Hettinger (rhettinger)
Date: 2003-06-10 22:09
Message:
Logged In: YES
user_id=80475
Can you try this one on the beta release to see if it is still a
problem. I cannot reproduce the segfault on a Windows
build.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=752221&group_id=5470