mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Found the next crasher by thinking about this logic in PyPy.
This commit is contained in:
parent
af795e5eea
commit
f416690490
1 changed files with 11 additions and 0 deletions
11
Lib/test/crashers/slot_tp_new.py
Normal file
11
Lib/test/crashers/slot_tp_new.py
Normal 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()
|
Loading…
Add table
Add a link
Reference in a new issue