Message320369
The entirely abstract example LGTM.
As for concrete real word examples, the possible one is changing the current working directory:
cwd = os.getcwd()
try:
os.chdir(target_dir)
yield
finally:
os.chdir(cwd) |
|
Date |
User |
Action |
Args |
2018-06-24 12:05:39 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, ncoghlan, taleinat, petr.viktorin |
2018-06-24 12:05:39 | serhiy.storchaka | set | messageid: <1529841939.63.0.56676864532.issue33468@psf.upfronthosting.co.za> |
2018-06-24 12:05:39 | serhiy.storchaka | link | issue33468 messages |
2018-06-24 12:05:39 | serhiy.storchaka | create | |
|