New submission from Amaury Forgeot d'Arc:

Following script crashes all versions of Python.  Cause is the 
"Py_DECREF(et->ht_name)" in type_set_name().

class Nasty(str):
    def __del__(self):
        C.__name__ = "other"
class C(object):
C.__name__ = Nasty("abc")
C.__name__ = "normal"

messages: 175210
nosy: amaury.forgeotdarc
priority: normal
severity: normal
status: open
title: SEGFAULT when setting type.__name__
type: crash

Python tracker <>
Python-bugs-list mailing list

Reply via email to