[issue27086] Add closefd argument to os.listdir

R. David Murray report at bugs.python.org
Mon May 23 11:06:20 EDT 2016


R. David Murray added the comment:

This proposal doesn't feel to me like it matches the general APIs we have in the standard library.  I would think the python style for this would be to use a context manager when opening the fd.  So, I'm -1 on this proposal.

----------
nosy: +r.david.murray

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


More information about the Python-bugs-list mailing list