[Python-Dev] os.normpath may change the meaning of the path if it contains symbolic links?
jepler@unpythonic.net
jepler at unpythonic.net
Sat Dec 3 03:53:22 CET 2005
Consider:
$ mkdir -p d/d/d
$ echo 1 > d/d/a
$ echo 2 > a
$ ln -s d/d/d x
$ python -c 'import os; print open(os.path.normpath("x/../a")).read(),'
2
$ cat x/../a
1
Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-dev/attachments/20051202/ded58ff7/attachment.pgp
More information about the Python-Dev
mailing list