[Python-Dev] Resource leaks warnings

Floris Bruynooghe flub at devork.be
Thu Sep 30 14:21:32 CEST 2010


On 29 September 2010 22:25, Nick Coghlan <ncoghlan at gmail.com> wrote:
> On Wed, Sep 29, 2010 at 11:40 PM, Barry Warsaw <barry at python.org> wrote:
>> I don't think it should be in the gc module, but I would prefer it be enabled
>> and controlled through a separate module, rather than something Python does
>> automatically for your convenience.
>
> The os module would seem to be the place to enable/disable tracking of
> OS level resource leaks (i.e. file descriptors and possible HANDLES on
> Windows).

Heh, I was expecting the sys module to be the natural choice because
this would be changing interpreter behaviour.  It's just random
bikeshedding at this point however.

Regards
Floris

-- 
Debian GNU/Linux -- The Power of Freedom
www.debian.org | www.gnu.org | www.kernel.org


More information about the Python-Dev mailing list