[New-bugs-announce] [issue15176] Clarify the behavior of listdir(fd) in both code and documentation
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.
nosy: georg.brandl, larry, ncoghlan
stage: needs patch
title: Clarify the behavior of listdir(fd) in both code and documentation
versions: Python 3.3
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce