Message 338241 - Python tracker

Message338241

Author janluke
Recipients benjamin.peterson, ezio.melotti, janluke, lemburg, martin.panter, vstinner
Date 2019-03-18.15:27:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1552922877.86.0.561816907692.issue36304@roundup.psfhosted.org>
In-reply-to
Content
In case the file is not seekable, we could decide based on the file mode:
- if mode='w', write the BOM
- if mode='a', don't write the BOM

Of course, mode "a" doesn't guarantee we are in the middle of the file, but it seems a consistent behavior not writing the BOM if we are "appending" to the file.
History
Date User Action Args
2019-03-18 15:27:57janlukesetrecipients: + janluke, lemburg, vstinner, benjamin.peterson, ezio.melotti, martin.panter
2019-03-18 15:27:57janlukesetmessageid: <1552922877.86.0.561816907692.issue36304@roundup.psfhosted.org>
2019-03-18 15:27:57janlukelinkissue36304 messages
2019-03-18 15:27:57janlukecreate