Nov-11-2017, 06:39 PM
(This post was last modified: Nov-11-2017, 06:44 PM by QbLearningPython.)
Of course, pathlib.Path is an object, not a string.
But pathlib.Paths are (or should be) compare using their filenames (which are strings). (Roughly speaking: in reality, pathlib.Paths are compared in other way that I really do not understand watching Python's source code).
So I think ordering (or comparing) pathlib.Paths and ordering (or comparing) their string filenames should render the same result, not a different one.
But pathlib.Paths are (or should be) compare using their filenames (which are strings). (Roughly speaking: in reality, pathlib.Paths are compared in other way that I really do not understand watching Python's source code).
So I think ordering (or comparing) pathlib.Paths and ordering (or comparing) their string filenames should render the same result, not a different one.