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

SourceForge.net noreply@sourceforge.net
Fri, 31 Jan 2003 07:46:46 -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: Walter Dörwald (doerwalter)
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.

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

>Comment By: M.-A. Lemburg (lemburg)
Date: 2003-01-31 16:46

Message:
Logged In: YES 
user_id=38388

... and I thought Unicode was the keyword ;-)

I fully trust Walter on the error handler callbacks, so I'll
pass it on to him.

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

Comment By: Guido van Rossum (gvanrossum)
Date: 2003-01-31 16:23

Message:
Logged In: YES 
user_id=6380

Since this says "codec" I've assigned it to Marc-Andre. :-)

Marc-Andre, if you don't have time, feel free to unassign it.

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

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