Author jwilk
Recipients jwilk
Date 2018-07-19.19:29:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1532028572.02.0.56676864532.issue34157@psf.upfronthosting.co.za>
In-reply-to
Content
If you press Ctrl+C at the wrong moment, NamedTemporaryFile won't delete the
temporary file. To reproduce, you can try this script:

    import tempfile
    while True:
        with tempfile.NamedTemporaryFile(dir='.'):
            pass

I get a stray temporary file when I press Ctrl+C about 40% of the time.
History
Date User Action Args
2018-07-19 19:29:32jwilksetrecipients: + jwilk
2018-07-19 19:29:32jwilksetmessageid: <1532028572.02.0.56676864532.issue34157@psf.upfronthosting.co.za>
2018-07-19 19:29:31jwilklinkissue34157 messages
2018-07-19 19:29:31jwilkcreate