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 serhiy.storchaka
Recipients Antony.Lee, eric.smith, georg.brandl, ncoghlan, serhiy.storchaka
Date 2014-09-11.12:19:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1410437979.22.0.726599206925.issue22387@psf.upfronthosting.co.za>
In-reply-to
Content
You can do this with a function too:

    def NTF(*args, closed=False, **kwargs):
        if closed: kwargs["delete"] = True
        ntf = NamedTemporaryFile(*args, **kwargs)
        if closed: ntf.close()
        return ntf
History
Date User Action Args
2014-09-11 12:19:39serhiy.storchakasetrecipients: + serhiy.storchaka, georg.brandl, ncoghlan, eric.smith, Antony.Lee
2014-09-11 12:19:39serhiy.storchakasetmessageid: <1410437979.22.0.726599206925.issue22387@psf.upfronthosting.co.za>
2014-09-11 12:19:39serhiy.storchakalinkissue22387 messages
2014-09-11 12:19:39serhiy.storchakacreate