Message108841
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 |
|
Date |
User |
Action |
Args |
2010-06-28 16:50:12 | techtonik | set | recipients:
+ techtonik, orsenthil, brian.curtin |
2010-06-28 16:50:11 | techtonik | set | messageid: <1277743811.43.0.832097170385.issue9097@psf.upfronthosting.co.za> |
2010-06-28 16:50:09 | techtonik | link | issue9097 messages |
2010-06-28 16:50:09 | techtonik | create | |
|