Found the next crasher by thinking about this logic in PyPy.

This commit is contained in:
Armin Rigo 2009-09-03 19:40:07 +00:00
parent af795e5eea
commit f416690490
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
"""
Infinite C recursion involving PyObject_GetAttr in slot_tp_new.
"""
class X(object):
class __metaclass__(type):
pass
__new__ = 5
X.__metaclass__.__new__ = property(X)
print X()