-
- Notifications
You must be signed in to change notification settings - Fork 33.1k
Closed
Labels
OS-windowsstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-pathlibtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
>>> from pathlib import PureWindowsPath >>> a = 'C:/a/b' >>> b = 'C:x/y' >>> PureWindowsPath(a, b) PureWindowsPath('C:x/y') >>> PureWindowsPath(a) / b PureWindowsPath('C:/a/b/x/y')
Seems to be the only case where the PureWindowsPath
constuctor and joinpath()
disagree when given the same arguments. This has implications for future work, so I'd love to make them consistent.
Affects all supported versions of Python.
CAM-Gerlach
Metadata
Metadata
Assignees
Labels
OS-windowsstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-pathlibtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error