[Python-Dev] PEP 293, Codec Error Handling Callbacks
Oren Tirosh
oren-py-d@hishome.net
Mon, 5 Aug 2002 23:44:04 +0300
On Mon, Aug 05, 2002 at 10:08:43PM +0200, Martin v. Loewis wrote:
> Oren Tirosh <oren-py-d@hishome.net> writes:
>
> > Charmap entries can currently be None, an integer or a unicode string. I
> > suggest adding another option: a function or other callable.
>
> That helps only for a subset of all codecs (the charmap based ones),
> and thus is unacceptable. I want it to work for, say, big5 also.
With the ability to embed functions inside a charmap big5 and other encodings
could be converted to be charmap based, too :-)
I just feel that there must be *some* simpler way. A patch with 87k of code
scares the hell out of me.
"There are no complex things. Only things that I haven't yet understood
why they are really simple."
Oren