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

2011-11-04 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- resolution: - wont fix stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13321 ___

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

2011-11-04 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Closing as wontfix. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13321 ___ ___

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

2011-11-02 Thread Petri Lehtinen
Petri Lehtinen pe...@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

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

2011-11-02 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13321 ___ ___

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

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

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

2011-11-01 Thread Matt Joiner
New submission from Matt Joiner anacro...@gmail.com: 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