No, that would not be fair to say. You are creating instances of the same standard file
type, which proxies file manipulation calls to the operating system. The mode defines what the operating system will let you do.
It doesn't matter if you use the same filename or different filenames; the OS doesn't care, and neither does Python; the open file objects are distinct.
The Python object itself is immutable; you cannot change the mode, filename or other attributes after the fact.
Note that by adding +
to the mode, you can both read and write to the file object; w+
will truncate the file first, while r+
would not.