We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.

file.fileno

fileno( )

Return the integer file descriptor that is used by the underlying implementation to request I/O operations from the operating system. This can be useful for other, lower level interfaces that use file descriptors, such as the fcntl module or os.read and friends. Note: File-like objects which do not have a real file descriptor should not provide this method!