This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author techtonik
Recipients brian.curtin, orsenthil, techtonik
Date 2010-06-28.16:50:09
SpamBayes Score 0.11159305
Marked as misclassified No
Message-id <1277743811.43.0.832097170385.issue9097@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2010-06-28 16:50:12techtoniksetrecipients: + techtonik, orsenthil, brian.curtin
2010-06-28 16:50:11techtoniksetmessageid: <1277743811.43.0.832097170385.issue9097@psf.upfronthosting.co.za>
2010-06-28 16:50:09techtoniklinkissue9097 messages
2010-06-28 16:50:09techtonikcreate