[Patches] [ python-Patches-677429 ] Out of bounds indizes in PEP293 callbacks

SourceForge.net noreply@sourceforge.net
Thu, 30 Jan 2003 03:43:06 -0800


Patches item #677429, was opened at 2003-01-30 12:43
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=677429&group_id=5470

Category: None
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Walter Dörwald (doerwalter)
Assigned to: Martin v. Löwis (loewis)
Summary: Out of bounds indizes in PEP293 callbacks

Initial Comment:
This patch changes the treatment of positions returned
by PEP293 error handers in the Unicode codecs: Negative
positions are treated as being relative to the end of
the input and out of bounds positions result in an
IndexError. The patch also updates the PEP and includes
an explanation of this in the documentation for
codecs.register_error. I don't know if this is the best
spot for it, or if it should be put somewhere else.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=677429&group_id=5470