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 brian.curtin
Recipients brian.curtin, techtonik
Date 2010-06-28.13:30:33
SpamBayes Score 0.004670099
Marked as misclassified No
Message-id <1277731835.15.0.436157261401.issue9097@psf.upfronthosting.co.za>
In-reply-to
Content
-0 for having os.chdir be responsible for the previous directory. I'm not too much against this, but it's very easily done in it's current state.

-1 for making os.chdir into a context manager which reverts itself upon exit. There are a number of race conditions this would have to handle and I think it's better for something like this to be implemented by the user. For example, if the original directory gets removed while you are within the block, what is the best fallback directory to change to upon exit? For the standard library, I don't think we can answer that.
History
Date User Action Args
2010-06-28 13:30:35brian.curtinsetrecipients: + brian.curtin, techtonik
2010-06-28 13:30:35brian.curtinsetmessageid: <1277731835.15.0.436157261401.issue9097@psf.upfronthosting.co.za>
2010-06-28 13:30:33brian.curtinlinkissue9097 messages
2010-06-28 13:30:33brian.curtincreate