[Python-bugs-list] [ python-Bugs-451773 ] new-style objects not weak-referencable
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 16 Aug 2001 15:19:40 -0700
Bugs item #451773, was opened at 2001-08-16 15:19
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=451773&group_id=5470
Category: Python Interpreter Core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Fred L. Drake, Jr. (fdrake)
Assigned to: Guido van Rossum (gvanrossum)
Summary: new-style objects not weak-referencable
Initial Comment:
Objects using the new-style class types are not weakly referencable:
>>> import weakref
>>> class MyClass(object):
... pass
...
>>> o = MyClass()
>>> weakref.ref(o)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: 'MyClass' objects are not weakly referencable
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=451773&group_id=5470