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 Arfrever, akira, martin.panter, piotr.dobrogost, pitrou, serhiy.storchaka, vstinner
Date 2016-03-25.20:42:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1458938549.53.0.678466493393.issue19829@psf.upfronthosting.co.za>
In-reply-to
Content
1. What if only object which directly owns a limited resource will emit a ResourceWarning? This can break some tests, but may be these tests are too strong? Current GC may be better than when io classes were implemented.

2. An object which indirectly owns a limited resource don't know about this if use only public API. It can known about this only if the wrapped object provides _dealloc_warn(). Thus _dealloc_warn() extends the API. If allows an object which indirectly owns a limited resource emit a resource warning, it may be worth to expose _dealloc_warn() or something equivalent as public API.
History
Date User Action Args
2016-03-25 20:42:29serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, vstinner, Arfrever, akira, martin.panter, piotr.dobrogost
2016-03-25 20:42:29serhiy.storchakasetmessageid: <1458938549.53.0.678466493393.issue19829@psf.upfronthosting.co.za>
2016-03-25 20:42:29serhiy.storchakalinkissue19829 messages
2016-03-25 20:42:29serhiy.storchakacreate