[issue9097] os.chdir(path) to return current dir

Eric Smith report at bugs.python.org
Mon Jun 28 23:04:34 CEST 2010


Eric Smith <eric at trueblade.com> added the comment:

-1 on this functionality being in os, for the same reasons David mentions.

I find both of these behaviors useful and I have small utility functions of my own that do the same (and ignore any errors). I'm not so sure they need to be in stdlib, though. As mentioned, you need to either handle the errors, or do what I do and just fail if any of these conditions arise.

----------
nosy: +eric.smith

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9097>
_______________________________________


More information about the Python-bugs-list mailing list