[issue19548] 'codecs' module docs improvements

Martin Panter report at bugs.python.org
Sun Jan 5 14:51:51 CET 2014


Martin Panter added the comment:

Addition to the list of improvements:

* Under codecs.IncrementalEncoder.reset() it mentions calling encode('', final=True). This call does not work as written for the byte encoders in my experience, because they do not accept empty text strings. Perhaps it should just say to use the final=True flag with no data.

----------
nosy: +vadmium

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19548>
_______________________________________


More information about the Python-bugs-list mailing list