[issue13321] fstat doesn't accept an object with "fileno" method

Petri Lehtinen report at bugs.python.org
Wed Nov 2 08:14:38 CET 2011


Petri Lehtinen <petri at digip.org> added the comment:

This is a request for new functionality, so marking as a feature request for 3.3. If implemented, the change should be applied to many other functions, in the os module at least.

I'm not sure whether this is very useful, though. The fstat(f.fileno()) idiom doesn't require that much writing and makes it explicit that we're operating on an underlying file descriptor. Furthermore, funtions in the os module are low-level and map very closely to the underlying C API.

----------
nosy: +benjamin.peterson, petri.lehtinen, pitrou, stutzbach
type: behavior -> feature request
versions:  -Python 3.2

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


More information about the Python-bugs-list mailing list