[Python-bugs-list] [ python-Bugs-658106 ] Setting __class__ to NoneType

noreply@sourceforge.net noreply@sourceforge.net
Mon, 23 Dec 2002 20:16:58 -0800


Bugs item #658106, was opened at 2002-12-23 23:16
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=658106&group_id=5470

Category: Python Interpreter Core
Group: Python 2.2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Jp Calderone (kuran)
Assigned to: Nobody/Anonymous (nobody)
Summary: Setting __class__ to NoneType

Initial Comment:
Creating an instance, setting its __class__ attribute
to NoneType, and then allowing that instance to be
garbage collected crashes the interpreter with an
"Aborted" message.

Example:

>>> o = object()
>>> o.__class__ = type(None)
>>> del o
Aborted


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=658106&group_id=5470