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

Eric V. Smith report at bugs.python.org
Wed Nov 2 20:01:57 CET 2011


Eric V. Smith <eric at trueblade.com> added the comment:

If I understand it correctly, this change request is to change os.fstat(obj) (and probably other functions) to call obj.fileno(), instead of the caller doing that?

If so, -1. Keep os.fstat() as a thin wrapper around fstat.

----------
nosy: +eric.smith

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


More information about the Python-bugs-list mailing list