
report at bugs
Nov 13, 2009, 1:44 PM
Post #3 of 4
(186 views)
Permalink
|
|
[issue7315] os.path.normpath doesn't normalize ../path/something.py
[In reply to]
|
|
James <purpleidea [at] gmail> added the comment: i looked at the source for normpath. i know that it doesn't look at the filesystem. assuming you're not currently sitting at the root directory, in all? cases ../xyz brings you back to where you started. we expect normpath to clean up a path string, collapsing '../' (as documented), perhaps either the docs should state otherwise, or this should collapse dirs as long as they are present in the path given to it ? as an aside is there any reason why normpath shouldn't look at the filesystem and decide if it makes sense to collapse a leading '../' when this case arises ? ---------- _______________________________________ Python tracker <report [at] bugs> <http://bugs.python.org/issue7315> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
|