[issue6213] Incremental encoder incompatibility between 2.x and py3k
Walter Dörwald
report at bugs.python.org
Mon Jun 8 13:13:57 CEST 2009
Walter Dörwald <walter at livinglogic.de> added the comment:
This was done because the codec state is part of the return value of
tell(). To have a reasonable return value (i.e. one with just the
position itself) in as many cases as possible it makes sense to design
the codec state in such a way, that the most common state is 0. This is
what was done for py3k: The default state (no BOM read/written yet) is 2
not 0.
----------
nosy: +doerwalter
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6213>
_______________________________________
More information about the Python-bugs-list
mailing list