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 Brock Mendel
Recipients Brock Mendel, serhiy.storchaka, xtreak
Date 2019-12-04.17:19:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1575479971.45.0.584118307238.issue38971@roundup.psfhosted.org>
In-reply-to
Content
> Does using with block similar to https://bugs.python.org/issue22831 solve this problem?

The motivating use case uses `with codecs.open(buf, "w", encoding=encoding) as f:`

https://github.com/pandas-dev/pandas/blob/master/pandas/io/formats/format.py#L498
History
Date User Action Args
2019-12-04 17:19:31Brock Mendelsetrecipients: + Brock Mendel, serhiy.storchaka, xtreak
2019-12-04 17:19:31Brock Mendelsetmessageid: <1575479971.45.0.584118307238.issue38971@roundup.psfhosted.org>
2019-12-04 17:19:31Brock Mendellinkissue38971 messages
2019-12-04 17:19:31Brock Mendelcreate