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

File objects

A file object represents an open file. File objects are created by the open built-in function, and also by library functions such as os.popen, os.fdopen, and the socket.socket.makefile method of socket objects (and perhaps by other functions or methods provided by extension modules).

The objects sys.stdin, sys.stdout and sys.stderr are initialized to file objects corresponding to the interpreter’s standard input, output and error streams. See the [Python Library Reference][9] for complete documentation of file objects.