[issue9097] os.chdir(path) to return current dir
report at bugs.python.org
Mon Jun 28 19:14:55 CEST 2010
Senthil Kumaran <orsenthil at gmail.com> added the comment:
On Mon, Jun 28, 2010 at 04:50:12PM +0000, anatoly techtonik wrote:
>I also can't see how can I verify you assumptions by looking at the code.
In the python source:
find -name "*.py" | xargs grep 'os.chdir'
gives 143 instances of its usage.
I looked a couple of them (subprocess.py, forking.py) and found that
returning a value as per your suggestion would add in an additional
line of code instead of any obvious advantage.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list