Message322027
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. |
|
Date |
User |
Action |
Args |
2018-07-20 16:35:12 | r.david.murray | set | recipients:
+ r.david.murray, rhettinger, ncoghlan, jwilk |
2018-07-20 16:35:12 | r.david.murray | set | messageid: <1532104512.66.0.56676864532.issue34157@psf.upfronthosting.co.za> |
2018-07-20 16:35:12 | r.david.murray | link | issue34157 messages |
2018-07-20 16:35:12 | r.david.murray | create | |
|