Commit Graph

8 Commits

Author SHA1 Message Date
Walter Dörwald 3ac0e706ad Fix typos. 2003-04-27 22:39:58 +00:00
Walter Dörwald b673f29c07 Change 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.

Also update the PEP and include an explanation of
this in the documentation for codecs.register_error.

Fixes a small bug in iconv_codecs: if the position
from the callback is negative *add* it to the size
instead of substracting it.

From SF patch #677429.
2003-01-31 17:19:09 +00:00
Barry Warsaw 3d754f3e07 PEP 293 is complete and checked in, so mark it as Final. 2002-09-03 15:58:43 +00:00
Walter Dörwald b151a83ed7 Add another compatiblity issue: illegal "errors" values
will raise a different exception.
2002-07-25 13:30:28 +00:00
Walter Dörwald 078b0a43a4 Update the PEP to the current state of the patch. 2002-07-25 13:23:29 +00:00
Walter Dörwald 5fbb4389bd Incorporate the result of the XML-SIG discussion:
stream readers/writers need a changeable errors attribute.
2002-07-09 18:35:04 +00:00
Walter Dörwald af7e5a7e46 Update Post-History 2002-06-19 11:12:50 +00:00
Barry Warsaw 90997b3c1d PEP 293, Codec Error Handling Callbacks, Walter Dörwald 2002-06-19 03:22:11 +00:00