[issue9097] os.chdir(path) to return current dir
anatoly techtonik
report at bugs.python.org
Sun Jun 23 15:21:43 CEST 2013
anatoly techtonik added the comment:
"an anti-pattern" and "encouraging a bad habit" are subjective non-arguments as long as they fail to answer why.
With or without the helper you still write this code:
prev = os.getcwd()
os.chdir(SDKPATH)
...
os.chdir(prev)
And because os.chdir() doesn't do anything high-level, there is no place for the multithreading warning.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9097>
_______________________________________
More information about the Python-bugs-list
mailing list