This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Antony.Lee
Recipients Antony.Lee, barneygale, brett.cannon, pitrou
Date 2020-03-02.20:30:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1583181005.98.0.563992447077.issue39682@roundup.psfhosted.org>
In-reply-to
Content
Immutability and hashability are listed first among "general properties" of paths (https://docs.python.org/3/library/pathlib.html#general-properties), and in the PEP proposing pathlib (https://www.python.org/dev/peps/pep-0428/#immutability).  Looking at it again I *guess* the docs version could be read as only guaranteeing this for PurePaths (because that's in the PurePath section) rather than Path, but the PEP version clearly implies that this is true for both PurePaths and concrete Paths.

It may be tricky to check usage in third-party packages, given that one would need to look for `with <path-object>: ...` rather than, say, a method name which can be grepped.  Do you have any suggestions here?
History
Date User Action Args
2020-03-02 20:30:06Antony.Leesetrecipients: + Antony.Lee, brett.cannon, pitrou, barneygale
2020-03-02 20:30:05Antony.Leesetmessageid: <1583181005.98.0.563992447077.issue39682@roundup.psfhosted.org>
2020-03-02 20:30:05Antony.Leelinkissue39682 messages
2020-03-02 20:30:05Antony.Leecreate