summaryrefslogtreecommitdiff
path: root/Python/exceptions.c
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2003-01-31 17:19:08 +0000
committerWalter Dörwald <walter@livinglogic.de>2003-01-31 17:19:08 +0000
commit891eaba04f5a34b007872bd4aefba3943f765a43 (patch)
treee7fdbf088c565d2e77e28e1b6b1c6b2584532031 /Python/exceptions.c
parentaafa283c47e6952510a1ede2fcceb53bc6b55371 (diff)
downloadcpython-891eaba04f5a34b007872bd4aefba3943f765a43.tar.gz
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.
Diffstat (limited to 'Python/exceptions.c')
0 files changed, 0 insertions, 0 deletions