Multiple File Handles For The Same File
So this question got me thinking. I did some testing with multiple file handles for the same file, and found some odd results that I was hoping someone could explain. >>>
Solution 1:
The underlying mechanism is explained here: https://docs.python.org/2/library/stdtypes.html
some types (for example, file objects) support only a degenerate notion of comparison where any two objects of that type are unequal
...
Non-identical instances of a class normally compare as non-equal unless the class defines the eq() method or the cmp() method.
Post a Comment for "Multiple File Handles For The Same File"