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 r.david.murray
Recipients jwilk, ncoghlan, r.david.murray, rhettinger
Date 2018-07-20.16:35:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1532104512.66.0.56676864532.issue34157@psf.upfronthosting.co.za>
In-reply-to
Content
Nick, what Jakub is saying is that 'with' hasn't even gotten involved yet: we're still executing the NamedTemporaryFile constructor, so the object hasn't been returned for 'with' to operate on yet.  In other words, NamedTemporaryFile.__init__ isn't safe against ctl-C when it calls _mkstemp, which is obvious by inspection since it isn't inside the try/except.
History
Date User Action Args
2018-07-20 16:35:12r.david.murraysetrecipients: + r.david.murray, rhettinger, ncoghlan, jwilk
2018-07-20 16:35:12r.david.murraysetmessageid: <1532104512.66.0.56676864532.issue34157@psf.upfronthosting.co.za>
2018-07-20 16:35:12r.david.murraylinkissue34157 messages
2018-07-20 16:35:12r.david.murraycreate