A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-June/025178.html below:

[Python-Dev] Bizarre new test failure

[Python-Dev] Bizarre new test failure [Python-Dev] Bizarre new test failureNeil Schemenauer nas@python.ca
Fri, 7 Jun 2002 09:33:27 -0700
--liOOAslEiF7prFVr
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Attached is a little program that triggers the behavior.  The CVS change
I finally narrowed in on was the addition of similar code to test_descr.
A reference counting bug is still by best guess.  Guido?

  Neil

--liOOAslEiF7prFVr
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="gcbug.py"

import gc
gc.disable()

def main():
    # must be inside function scope
    class A(object):
        def __init__(self):
            self.__super = super(A, self)

    A()
 
main()
print 'first collect', gc.collect()
print 'second collect', gc.collect()

--liOOAslEiF7prFVr--




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4