[New-bugs-announce] [issue15176] Clarify the behavior of listdir(fd) in both code and documentation

Larry Hastings report at bugs.python.org
Mon Jun 25 05:39:58 CEST 2012


New submission from Larry Hastings <larry at hastings.org>:

When you pass in a file descriptor as the first argument to listdir, its output is a list of strings, not a list of bytes.  This should be mentioned in the documentation.  It's also worth making a pass over the other functions accepting an fd.

As it happens, the code that implements this behavior is obtuse.  So I propose also modifying it to be more intelligible.

----------
assignee: larry
messages: 163885
nosy: georg.brandl, larry, ncoghlan
priority: normal
severity: normal
stage: needs patch
status: open
title: Clarify the behavior of listdir(fd) in both code and documentation
type: enhancement
versions: Python 3.3

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


More information about the New-bugs-announce mailing list