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 jwilk
Recipients jwilk
Date 2018-07-19.19:29:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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='.'):

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