[issue29635] os.chdir() acts like `cd -P` by default, it should offer an option to not follow symlinks
R. David Murray
report at bugs.python.org
Thu Feb 23 14:20:45 EST 2017
R. David Murray added the comment:
The function is chdir, not cd. The 'cd' man page says that 'cd -P' should "perform actions equivalent to the chdir() function".
So, you are asking for a different function, which should *not* be named 'os.chdir'. You'll have to make a case for it being useful enough to add.
The same applies to getcwd, which is also a wrapper for the posix function, not an emulation of the shell's pwd.
----------
components: +Library (Lib) -Interpreter Core
nosy: +r.david.murray
versions: -Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29635>
_______________________________________
More information about the Python-bugs-list
mailing list