[Python-checkins] python/dist/src/Modules _iconv_codec.c,NONE,1.1

Martin v. Löwis martin@v.loewis.de
27 Jan 2003 19:53:49 +0100


Walter Dörwald <walter@livinglogic.de> writes:

> This interprets negative indizes as being relative to the
> end of the input. All other encoders treat <0 as ==0.

Hmm. This appears to be unspecified in the PEP. What is the rationale
for equating <0 to =0? It appears that this indicates a bug in the
error callback, which should not pass silently.

In any case, I'ld like to request that the documentation is clarified
in this aspect (preferable, the "proper" documentation, not (just) the
PEP). Once that clarification is added, the incorrect codecs should be
corrected.

Regards,
Martin