Jun-08-2021, 02:06 PM
(This post was last modified: Jun-08-2021, 02:07 PM by Gribouillis.)
Each call to open() creates a new instance of
_io.TextIOWrapper
. By default, Python objects compare equal if they are the same instance. The equality between open files objects has not been defined as the equality of the files' contents.