[Python-bugs-list] [ python-Bugs-489581 ] __slots__ leak!!!

noreply@sourceforge.net noreply@sourceforge.net
Wed, 05 Dec 2001 14:46:08 -0800


Bugs item #489581, was opened at 2001-12-05 14:08
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=489581&group_id=5470

Category: None
Group: Python 2.2
>Status: Closed
>Resolution: Fixed
Priority: 8
Submitted By: Guido van Rossum (gvanrossum)
Assigned to: Guido van Rossum (gvanrossum)
Summary: __slots__ leak!!!

Initial Comment:
Amazing.  Instance variables created by __slots__ are
never DECREFed when the instance goes away.

Example:

 class C(object):  __slots__ = ['a']

 while 1:  C().a = {}

This leaks!

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

>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-12-05 14:46

Message:
Logged In: YES 
user_id=6380

Fixed in typeobject.c rev. 2.123.

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

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