Brock Mendel <jbrockmen...@gmail.com> added the comment:

> 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

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38971>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to