[issue27086] Add closefd argument to os.listdir

Irit Katriel report at bugs.python.org
Thu Jun 24 06:35:09 EDT 2021


Irit Katriel <iritkatriel at gmail.com> added the comment:

I agree with Serhiy and David. The responsibility for closing the file is with whoever opened it, and adding an option in a function for it to also close the fd after doing what it was designed to do makes the API unnecessarily over-complicated.

----------
nosy: +iritkatriel
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue27086>
_______________________________________


More information about the Python-bugs-list mailing list