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 techtonik
Date 2010-06-28.11:43:27
SpamBayes Score 0.038613483
Marked as misclassified No
Message-id <1277725409.82.0.324179081421.issue9097@psf.upfronthosting.co.za>
In-reply-to
Content
os.chdir(path) is often used with os.getcwd() call and doesn't return anything. It can return the name of the directory before the change.

prev = os.chdir(path)
...
os.chdir(prev)

Maybe it will also be possible to implement 'with' construct:

with os.chdir(path):
  ...
History
Date User Action Args
2010-06-28 11:43:29techtoniksetrecipients: + techtonik
2010-06-28 11:43:29techtoniksetmessageid: <1277725409.82.0.324179081421.issue9097@psf.upfronthosting.co.za>
2010-06-28 11:43:28techtoniklinkissue9097 messages
2010-06-28 11:43:27techtonikcreate