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

file.mode

mode

The I/O mode for the file. If the file was created using the open built-in function, this will be the value of the mode parameter. This is a read-only attribute and may not be present on all file-like objects.