[ python-Bugs-1267884 ] crash recursive __getattr__
SourceForge.net
noreply at sourceforge.net
Thu Sep 1 22:37:21 CEST 2005
Bugs item #1267884, was opened at 2005-08-24 06:22
Message generated for change (Comment added) made by tjreedy
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1267884&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Interpreter Core
Group: Python 2.4
Status: Closed
Resolution: Duplicate
Priority: 5
Submitted By: pinzo (rodrigo_rc)
Assigned to: Nobody/Anonymous (nobody)
Summary: crash recursive __getattr__
Initial Comment:
The following code eats all stack space and crashes,
both in Windows and Linux:
------------8<-------------
class C:
def __getattr__(self, a):
return object.__getattribute__(self, a)
c = C()
str(c)
------------8<-------------
It shoud probably raise "RuntimeError: maximum
recursion depth exceeded" or similar instead.
----------------------------------------------------------------------
>Comment By: Terry J. Reedy (tjreedy)
Date: 2005-09-01 16:37
Message:
Logged In: YES
user_id=593130
I believe this is essentially the same as open bug
[ 1202533 ] a bunch of infinite C recursions
Closing as duplicate and adding a cross-reference note to
1202533. Reopen if a fix to the above, if and when there is one,
does not fix this.
----------------------------------------------------------------------
Comment By: Terry J. Reedy (tjreedy)
Date: 2005-09-01 16:35
Message:
Logged In: YES
user_id=593130
I believe this is essentially the same as open bug
[ 1202533 ] a bunch of infinite C recursions
Closing as duplicate and adding note to 1202533. Reopen if a
fix to the above, if and when there is one, does not fix this.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1267884&group_id=5470
More information about the Python-bugs-list
mailing list