[Python-Dev] os.path.diff(path1, path2) (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Tue Sep 20 06:07:49 CEST 2005
- Previous message: [Python-Dev] os.path.diff(path1, path2)
- Next message: [Python-Dev] For/while/if statements/comprehension/generator expressions unification
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Delaney, Timothy (Tim) wrote:
In addition, I would presume that relpath would just return the absolute path if passed an absolute path as the second parameter.
I don't think so. Wouldn't you expect the result of
relpath("/usr/local/foo/bax/grump.c", "/usr/local/flump/grump.c")
to be "../../flump/grump.c" rather than "/usr/local/flump/grump.c"?
So the above would simply return "/usr/" IMO. Tim Delaney
Python-Dev mailing list Python-Dev at python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/greg.ewing%40canterbury.ac.nz
-- Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg.ewing at canterbury.ac.nz +--------------------------------------+
- Previous message: [Python-Dev] os.path.diff(path1, path2)
- Next message: [Python-Dev] For/while/if statements/comprehension/generator expressions unification
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]