This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author anacrolix
Recipients anacrolix
Date 2011-11-02.04:04:11
SpamBayes Score 0.0007437414
Marked as misclassified No
Message-id <1320206652.2.0.972235455602.issue13321@psf.upfronthosting.co.za>
In-reply-to
Content
os.fstat doesn't not accept an object with the fileno() method.

Probably a bunch of other similar functions will not either.

In some parts of the standard library it's common practice to call PyObject_AsFileDescriptor on fd-wrapping arguments.

http://hg.python.org/cpython/file/d877d7f3b679/Modules/posixmodule.c#l7319
http://hg.python.org/cpython/file/d877d7f3b679/Objects/fileobject.c#l196
History
Date User Action Args
2011-11-02 04:04:12anacrolixsetrecipients: + anacrolix
2011-11-02 04:04:12anacrolixsetmessageid: <1320206652.2.0.972235455602.issue13321@psf.upfronthosting.co.za>
2011-11-02 04:04:11anacrolixlinkissue13321 messages
2011-11-02 04:04:11anacrolixcreate