anatoly techtonik <techto...@gmail.com> added the comment:

Brian, in case you remove previous directory - you will get the same exception 
that in the following code.

prev = os.chdir(somepath)
os.rmdir(prev)
os.chdir(prev)

Senthil, your arguments are strange. Both use cases are at least useful for me 
(if not intuitive). I also can't see how can I verify you assumptions by 
looking at the code. If you want to say that not every piece of code need to 
return to parent directory after chdir - that's pretty obvious. If you had a 
list of use cases for os.chdir() - I could go through them to mark where this 
can be used (or not).

label:api

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9097>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to