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

2011-11-04 Thread Petri Lehtinen
Petri Lehtinen added the comment: Closing as wontfix. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

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

2011-11-04 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- resolution: -> wont fix stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

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

2011-11-02 Thread Eric V. Smith
Eric V. Smith 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 __

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

2011-11-02 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- priority: normal -> low ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

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

2011-11-02 Thread Petri Lehtinen
Petri Lehtinen 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 d

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

2011-11-01 Thread Matt Joiner
New submission from Matt Joiner : 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.pytho