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

file.name

name

If the file object was created using open, the name of the file. Otherwise, some string that indicates the source of the file object, of the form “<…>”. This is a read-only attribute and may not be present on all file-like objects.