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

noreply@sourceforge.net noreply@sourceforge.net
Tue, 24 Dec 2002 06:48:09 -0800


Bugs item #658106, was opened at 2002-12-24 04: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


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

>Comment By: Michael Hudson (mwh)
Date: 2002-12-24 14:48

Message:
Logged In: YES 
user_id=6656

This seems to be fixed on the trunk but still broken on the 
release22-maint branch.

I'll dig, but not when I'm stuck behind a modem, so I won't be offended
if someone beats me to it!


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

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