Python Forum
Why are two variables unequal as they point to the same value?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why are two variables unequal as they point to the same value?
#2
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.
Reply


Messages In This Thread
RE: Why are two variables unequal as they point to the same value? - by Gribouillis - Jun-08-2021, 02:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  connecting the first point to the last point Matplotlib omar_mohsen 0 4,684 Jan-15-2020, 01:23 PM
Last Post: omar_mohsen
  itertools.zip_shortest() fo unequal iterators Skaperen 10 6,938 Dec-27-2019, 12:17 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020