Bugs item #636648, was opened at 2002-11-11 10:00 Message generated for change (Comment added) made by mkc You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=636648&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.2.1 Status: Closed Resolution: Invalid Priority: 5 Submitted By: Nicholas Jones (carpaski) Assigned to: Neal Norwitz (nnorwitz) Summary: os.path.normpath leading '//' Initial Comment: normpath does not remove leading double slashes. (Linux) Python 2.2.1 (#1, Oct 30 2002, 19:46:40) >>> import os.path >>> os.path.normpath("//usr/bin") '//usr/bin' >>> os.path.normpath("///usr/bin") '/usr/bin' >>> os.path.normpath("//./usr/bin") '//usr/bin' ---------------------------------------------------------------------- Comment By: Mike Coleman (mkc) Date: 2005-09-28 14:11 Message: Logged In: YES user_id=555 Nonetheless, keeping an initial double slash renders this function useless for its expected purpose. If this cannot be fixed outright, could be add a flag (with doc) to provide the expected behavior (i.e., squish all multiple slash sequences)? This document (link below) says "Application developers should avoid generating pathnames that start with "//". Implementations are strongly encouraged to avoid using this special interpretation..." http://64.233.167.104/search?q=cache:DY5cJbmtg7QJ:www.opengroup.org/onlinepubs/009695399/xrat/xbd_chap04.html+posix+path+double+initial+slash&hl=en ---------------------------------------------------------------------- Comment By: Neal Norwitz (nnorwitz) Date: 2002-11-13 21:39 Message: Logged In: YES user_id=33168 This is the intent of the code. The comment says: # POSIX allows one or two initial slashes, but treats three or more # as single slash. Therefore, I'm closing this as Invalid. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=636648&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com