[Python-bugs-list] [ python-Bugs-405583 ] Objects never freed with nested scopes

nobody nobody@sourceforge.net
Fri, 02 Mar 2001 19:33:16 -0800


Bugs #405583, was updated on 2001-03-02 19:33
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=405583&group_id=5470

Category: Python Interpreter Core
Group: None
Status: Open
Priority: 5
Submitted By: Atsuo Ishimoto
Assigned to: Nobody/Anonymous
Summary: Objects never freed with nested scopes

Initial Comment:
With this code,

from __future__ import nested_scopes
class foo:
    def __del__(self): print "del foo"

def f1():
    x = foo()
    def f2():x
    f2()

for i in range(10000):
    f1()

I see no "del foo" message.


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

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