[Python-Dev] os.normpath may change the meaning of the path if it contains symbolic links? (original) (raw)
jepler@unpythonic.net jepler at unpythonic.net
Sat Dec 3 03:53:22 CET 2005
- Previous message: [Python-Dev] os.normpath may change the meaning of the path if itcontains symbolic links?
- Next message: [Python-Dev] Proposed additional keyword argument in logging calls
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] os.normpath may change the meaning of the path if itcontains symbolic links?
- Next message: [Python-Dev] Proposed additional keyword argument in logging calls
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]