[issue23247] Crash in the reset() method of StreamWriter of CJK codecs

Martin Panter report at bugs.python.org
Thu Jul 16 14:57:06 CEST 2015


Martin Panter added the comment:

Aaron: Your version of the fix immediately returns None, while Victor’s tries to encode an empty string (if I understand it correctly). I imagine this shortcut could be slightly more efficient, but is it always correct?

In any case, Aaron’s test looks okay to me.

----------
stage: test needed -> patch review

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


More information about the Python-bugs-list mailing list