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 ischwabacher
Recipients BreamoreBoy, h.venev, ischwabacher, pitrou
Date 2014-08-05.21:10:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1407273011.32.0.162165910296.issue21039@psf.upfronthosting.co.za>
In-reply-to
Content
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.

4.12 Pathname Resolution
========================

[...]

A pathname that contains at least one non- <slash> character and that ends with one or more trailing <slash> characters shall not be resolved successfully unless the last pathname component before the trailing <slash> characters names an existing directory or a directory entry that is to be created for a directory immediately after the pathname is resolved. Interfaces using pathname resolution may specify additional constraints[1] when a pathname that does not name an existing directory contains at least one non- <slash> character and contains one or more trailing <slash> characters.

If a symbolic link is encountered during pathname resolution, the behavior shall depend on whether the pathname component is at the end of the pathname and on the function being performed. If all of the following are true, then pathname resolution is complete:

    1. This is the last pathname component of the pathname.

    2. The pathname has no trailing <slash>.

    3. The function is required to act on the symbolic link itself, or certain arguments direct that the function act on the symbolic link itself.

In all other cases, the system shall prefix the remaining pathname, if any, with the contents of the symbolic link. [...]
History
Date User Action Args
2014-08-05 21:10:11ischwabachersetrecipients: + ischwabacher, pitrou, BreamoreBoy, h.venev
2014-08-05 21:10:11ischwabachersetmessageid: <1407273011.32.0.162165910296.issue21039@psf.upfronthosting.co.za>
2014-08-05 21:10:11ischwabacherlinkissue21039 messages
2014-08-05 21:10:11ischwabachercreate