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 mpaolini
Recipients Guido.van.Rossum, Richard.Kiss, giampaolo.rodola, gvanrossum, mpaolini, pitrou, python-dev, richard.kiss, vstinner, yselivanov
Date 2014-08-18.16:17:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1408378670.22.0.55774757462.issue21163@psf.upfronthosting.co.za>
In-reply-to
Content
Asking the user to manage strong refs is just passing the potential 
leak issue outside of the standard library. It doesn't really solve anything.

If the user gets the strong refs wrong he can either lose tasks or 
leak memory.

If the standard library gets it right, both issues are avoided.

> I'm all in favor of documenting that you must keep a strong reference to a
> task that you want to keep alive. I'm not keen on automatically keep all
> tasks alive, that might exacerbate leaks (which are by definition hard to
find) in existing programs.
History
Date User Action Args
2014-08-18 16:17:50mpaolinisetrecipients: + mpaolini, gvanrossum, pitrou, vstinner, giampaolo.rodola, python-dev, yselivanov, Guido.van.Rossum, richard.kiss, Richard.Kiss
2014-08-18 16:17:50mpaolinisetmessageid: <1408378670.22.0.55774757462.issue21163@psf.upfronthosting.co.za>
2014-08-18 16:17:50mpaolinilinkissue21163 messages
2014-08-18 16:17:50mpaolinicreate