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 steve.dower
Recipients Kevin.Norris, eryksun, pitrou, steve.dower, tim.golden, zach.ware
Date 2014-09-06.20:40:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1410036030.7.0.603150763539.issue22299@psf.upfronthosting.co.za>
In-reply-to
Content
It's no less expected than having OS functions fail because the path is too long.

Using it to maintain dots at the end of directory/file names is a little less safe and may break some code. Maybe pathlib should strip these if there is no a prefix? (For example, "C:\Test." == "C:\Test" == "\\?\C:\Test" != "\\?\C:\Test.")

If most (or all) of the file handling functions in Python are using *W() APIs and can support the prefix, I'd rather add it in silently if only to avoid the long path issue. It's really the sort of implementation detail that pathlib should be able to hide from the app developer and the user (Node.js does this, for example, as its node_modules hierarchies regularly exceed the max path limitation).

Maybe the best approach is to preserve the prefix if it already exists, and add it if it becomes necessary. File operations are most likely to succeed in this case, even if it may be surprising to users.
History
Date User Action Args
2014-09-06 20:40:30steve.dowersetrecipients: + steve.dower, pitrou, tim.golden, zach.ware, eryksun, Kevin.Norris
2014-09-06 20:40:30steve.dowersetmessageid: <1410036030.7.0.603150763539.issue22299@psf.upfronthosting.co.za>
2014-09-06 20:40:30steve.dowerlinkissue22299 messages
2014-09-06 20:40:30steve.dowercreate