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 steven.daprano
Recipients remi.lapeyre, serhiy.storchaka, sidhant, skip.montanaro, steven.daprano
Date 2020-05-27.02:09:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1590545387.05.0.387979829628.issue40762@roundup.psfhosted.org>
In-reply-to
Content
The csv file object knows the encoding it was opened with, I think?

If so, we could add an enhancement that bytes objects are first decoded to str using the same encoding the file was opened with. That seems like a reasonable new feature to me.

Everything else would continue to be passed through str().
History
Date User Action Args
2020-05-27 02:09:47steven.dapranosetrecipients: + steven.daprano, skip.montanaro, serhiy.storchaka, remi.lapeyre, sidhant
2020-05-27 02:09:47steven.dapranosetmessageid: <1590545387.05.0.387979829628.issue40762@roundup.psfhosted.org>
2020-05-27 02:09:47steven.dapranolinkissue40762 messages
2020-05-27 02:09:46steven.dapranocreate