This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sbt
Recipients docs@python, ncoghlan, pitrou, python-dev, sbt
Date 2013-09-22.19:13:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1379877180.81.0.720621920102.issue19047@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks for the doc cleanup -- I am rather busy right now.

Note that stuff does still get replaced by None at shutdown, and this can still produce errors, even if they are much harder to trigger.  If I run the following program

    import _weakref
    import collections

    a = "hello"

    class Foo(object):
        def __del__(self):
            print(a)

    collections.foo = Foo()
    _weakref.foo = Foo()

then depending on the initial hashseed I get a reproducible error:

    $ PYTHONHASHSEED=7 python-release /tmp/bad.py
    Exception ignored in: <bound method Foo.__del__ of <__main__.Foo object at 0xb733db8c>>
    Traceback (most recent call last):
      File "/tmp/bad.py", line 8, in __del__
    TypeError: 'NoneType' object is not callable

(Personally I would like to see a flag set late during shutdown which blocks __del__ methods from running.)
History
Date User Action Args
2013-09-22 19:13:00sbtsetrecipients: + sbt, ncoghlan, pitrou, docs@python, python-dev
2013-09-22 19:13:00sbtsetmessageid: <1379877180.81.0.720621920102.issue19047@psf.upfronthosting.co.za>
2013-09-22 19:13:00sbtlinkissue19047 messages
2013-09-22 19:13:00sbtcreate