[New-bugs-announce] [issue22831] Use "with" to avoid possible fd leaks

Serhiy Storchaka report at bugs.python.org
Sun Nov 9 20:22:27 CET 2014


New submission from Serhiy Storchaka:

Here is large patch which convert a code which potentially can leak file descriptor to use the with statement so files are always closed. This can make effect mainly on alternative Python implementation without reference counting. But even on CPython this will get rid from resource leaking warnings.

----------
components: Demos and Tools, Library (Lib), Tests
files: fd_leaks.diff
keywords: patch
messages: 230901
nosy: rhettinger, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Use "with" to avoid possible fd leaks
type: resource usage
versions: Python 3.5
Added file: http://bugs.python.org/file37158/fd_leaks.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22831>
_______________________________________


More information about the New-bugs-announce mailing list