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 socketpair
Recipients Eduardo.Seabra, berker.peksag, georg.brandl, ncoghlan, pitrou, r.david.murray, serhiy.storchaka, socketpair, vstinner
Date 2015-12-21.19:13:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
So, I'm required to re-implement NamedTemporaryFile by hand like that:


    fd, name = tempfile.mkstemp(...)
    try:
        with io.open(fd, ...) as fff:
            fff.write('hello')
            fff.flush()
            os.fdatasync(fff)
            os.rename(name, ...)
    except:
        os.unlink(name)
        raise


This is sad to see...
History
Date User Action Args
2015-12-21 19:13:10socketpairsetrecipients: + socketpair, georg.brandl, ncoghlan, pitrou, vstinner, r.david.murray, berker.peksag, serhiy.storchaka, Eduardo.Seabra
2015-12-21 19:13:10socketpairsetmessageid: <[email protected]>
2015-12-21 19:13:10socketpairlinkissue21579 messages
2015-12-21 19:13:10socketpaircreate