Message226766
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 |
|
Date |
User |
Action |
Args |
2014-09-11 12:19:39 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, georg.brandl, ncoghlan, eric.smith, Antony.Lee |
2014-09-11 12:19:39 | serhiy.storchaka | set | messageid: <1410437979.22.0.726599206925.issue22387@psf.upfronthosting.co.za> |
2014-09-11 12:19:39 | serhiy.storchaka | link | issue22387 messages |
2014-09-11 12:19:39 | serhiy.storchaka | create | |
|