[issue21039] pathlib strips trailing slash

2015-04-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Therefore, I'm finally closing this as won't fix :) -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ __

[issue21039] pathlib strips trailing slash

2015-04-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: I beg to disagree :) Pathlib tries to find a compromise between user-friendliness and power, but it's definitely more on the user-friendliness side than, say, the os module APIs. In other words, I don't think it's a problem if not all details of OS semantics c

[issue21039] pathlib strips trailing slash

2015-04-14 Thread A.M. Kuchling
A.M. Kuchling added the comment: The general mood on python-dev seemed to be that the trailing slash shouldn't be normalized. Can this still be fixed, or is it too late since pathlib was shipped in 3.4? The python-dev discussion was at https://mail.python.org/pipermail/python-dev/2014-August

[issue21039] pathlib strips trailing slash

2014-08-08 Thread Ian Cordasco
Changes by Ian Cordasco : -- nosy: +icordasc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue21039] pathlib strips trailing slash

2014-08-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka resolution: rejected -> type: -> behavior versions: +Python 3.5 ___ Python tracker ___

[issue21039] pathlib strips trailing slash

2014-08-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Isaac, thanks for the reference. I'm reopening the issue for discussion (although I'm still not convinced this would be actually a good thing). May I ask you to post on the python-dev mailing-list for further feedback? -- status: closed -> open ___

[issue21039] pathlib strips trailing slash

2014-08-05 Thread Isaac Schwabacher
Isaac Schwabacher added the comment: This may be only syntactic sugar, but it is POSIX-specified syntactic sugar: according to http://pubs.opengroup.org/onlinepubs/9699919799/. trailing slashes in pathnames are semantically meaningful in pathname resolution. Tilde escapes are not mentioned.

[issue21039] pathlib strips trailing slash

2014-03-23 Thread Mark Lawrence
Mark Lawrence added the comment: PEP11 states that VMS was unsupported in 3.3. Code was removed from 3.4 via #16136. -- nosy: +BreamoreBoy ___ Python tracker ___ __

[issue21039] pathlib strips trailing slash

2014-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Or maybe URLPath? I'm skeptical about that. I think someone should first prototype a PureURLPath and maybe publish it on PyPI. (as for the non-pure variant, URLPath, it doesn't seem to make sense) -- ___ Python tra

[issue21039] pathlib strips trailing slash

2014-03-23 Thread Hristo Venev
Hristo Venev added the comment: Or maybe URLPath? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue21039] pathlib strips trailing slash

2014-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Then I'm afraid the current Path classes won't do a good job of representing them :-) But as I said, Python probably doesn't run on VMS anymore, so this is a rather theoretical problem. Maybe if some day Python supports VMS again, someone can contribute a VMS

[issue21039] pathlib strips trailing slash

2014-03-23 Thread Hristo Venev
Hristo Venev added the comment: AFAIK paths on OpenVMS are represented in a strange way. [dir.subdir]filename is a path for a file and [dir.subdir.anothersubdir] is a path for a directory. -- ___ Python tracker __

[issue21039] pathlib strips trailing slash

2014-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Can you elaborate? Python hasn't supported VMS for quite some time... -- ___ Python tracker ___ ___

[issue21039] pathlib strips trailing slash

2014-03-23 Thread Hristo Venev
Hristo Venev added the comment: What about OpenVMS? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue21039] pathlib strips trailing slash

2014-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Closing as rejected, sorry. -- resolution: -> rejected status: open -> closed ___ Python tracker ___ __

[issue21039] pathlib strips trailing slash

2014-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, this is by design. The occasional difference between slash-ended and non-slash-ended paths is unexpected and potentially confusing. Moreover, it's not a property of the OS itself - it's just some syntactic sugar to enable an option such as resolving symli

[issue21039] pathlib strips trailing slash

2014-03-23 Thread Hristo Venev
New submission from Hristo Venev: Some programs' behavior is different depending on whether the path has a trailing slash or not. Examples include ls, cp, mv, ln, rm and rsync. URL paths may also behave differently. For example http://xkcd.com/1 redirects to http://xkcd.com/1/ Boost.Filesyste