This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, pascal.bach
Date 2008-08-23.09:06:22
SpamBayes Score 0.02853988
Marked as misclassified No
Message-id <1219482383.75.0.0621759359194.issue3649@psf.upfronthosting.co.za>
In-reply-to
Content
You could start with utf_8.py, and of course replace the calls to
codecs.utf_8_encode and codecs.utf_8_decode.

- your "ia5_encode" follows this interface:
http://docs.python.org/dev/library/codecs.html#codecs.Codec.encode

- your "ia5_decode" has the signature:
    def ia5_decode(input, errors='strict', final=False)
and returns a tuple (output object, length consumed).
See
http://docs.python.org/dev/library/codecs.html#codecs.IncrementalDecoder.decode
for an explanation of the final parameter; 
in particular, if the input is a single 0x1B,
- it will return ('', 0) if final is False
- and raise UnicodeDecodeError("unexpected end of data") if final is True
History
Date User Action Args
2008-08-23 09:06:23amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, pascal.bach
2008-08-23 09:06:23amaury.forgeotdarcsetmessageid: <1219482383.75.0.0621759359194.issue3649@psf.upfronthosting.co.za>
2008-08-23 09:06:23amaury.forgeotdarclinkissue3649 messages
2008-08-23 09:06:22amaury.forgeotdarccreate