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 serhiy.storchaka
Recipients Alexey Kazantsev, Vadim Markovtsev, amaury.forgeotdarc, martin.panter, pitrou, serhiy.storchaka, tim.peters
Date 2015-03-21.11:50:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426938634.48.0.48806962226.issue23720@psf.upfronthosting.co.za>
In-reply-to
Content
> There is a cycle involving the class object, but I don’t think there is a cycle involving the instance objects this time.

It is.

>>> a = A()
>>> a.__class__.__del__.__globals__['a']
<__main__.A object at 0xb702230c>

And all objects referenced from user class or module level instance of user class are in a cycle. This problem can cause issues such as issue17852.
History
Date User Action Args
2015-03-21 11:50:34serhiy.storchakasetrecipients: + serhiy.storchaka, tim.peters, amaury.forgeotdarc, pitrou, martin.panter, Vadim Markovtsev, Alexey Kazantsev
2015-03-21 11:50:34serhiy.storchakasetmessageid: <1426938634.48.0.48806962226.issue23720@psf.upfronthosting.co.za>
2015-03-21 11:50:34serhiy.storchakalinkissue23720 messages
2015-03-21 11:50:34serhiy.storchakacreate