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 andrei.avk
Recipients andrei.avk, cvrebert, emilyemorehouse, joca.bt, pitrou, r.david.murray, robbuckley
Date 2021-11-21.02:47:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1637462825.97.0.0865218566574.issue22276@roundup.psfhosted.org>
In-reply-to
Content
Generally if Path is created with a trailing separator, I think it should error out for all methods that apply to files, for example `.touch()`, `read*()`, `write*()`, others.

This is consistent with shell commands:

touch xyz/                                                                       touch: xyz/: Not a directory 

echo 'blah' > xyz/                                                               
zsh: not a directory: xyz/
History
Date User Action Args
2021-11-21 02:47:06andrei.avksetrecipients: + andrei.avk, pitrou, r.david.murray, cvrebert, joca.bt, emilyemorehouse, robbuckley
2021-11-21 02:47:05andrei.avksetmessageid: <1637462825.97.0.0865218566574.issue22276@roundup.psfhosted.org>
2021-11-21 02:47:05andrei.avklinkissue22276 messages
2021-11-21 02:47:05andrei.avkcreate