Author serhiy.storchaka
Recipients ncoghlan, petr.viktorin, serhiy.storchaka, taleinat
Date 2018-06-24.12:05:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1529841939.63.0.56676864532.issue33468@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2018-06-24 12:05:39serhiy.storchakasetrecipients: + serhiy.storchaka, ncoghlan, taleinat, petr.viktorin
2018-06-24 12:05:39serhiy.storchakasetmessageid: <1529841939.63.0.56676864532.issue33468@psf.upfronthosting.co.za>
2018-06-24 12:05:39serhiy.storchakalinkissue33468 messages
2018-06-24 12:05:39serhiy.storchakacreate