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 pablogsal
Recipients Henrique Andrade, davin, pablogsal, pitrou
Date 2018-03-18.23:37:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1521416252.15.0.467229070634.issue33081@psf.upfronthosting.co.za>
In-reply-to
Content
The garbage collector in Python does not work like that. If an object reaches zero references is destroyed immediately. The only problem is when circular references exist and is in this case when object deletion is delayed until the garbage collector runs the algorithm to detect circular references and delete them. This time is longer depending on the generation in which the object is placed.

Although this is true, there might be a problem in the lines you explain because is not guaranteed to collect garbage containing circular references (see Data Model in the documentation). In this case is important as you state to have an interface to ensure releasing the resources.
History
Date User Action Args
2018-03-18 23:37:32pablogsalsetrecipients: + pablogsal, pitrou, davin, Henrique Andrade
2018-03-18 23:37:32pablogsalsetmessageid: <1521416252.15.0.467229070634.issue33081@psf.upfronthosting.co.za>
2018-03-18 23:37:32pablogsallinkissue33081 messages
2018-03-18 23:37:32pablogsalcreate