[Python-Dev] Decoding incomplete unicode (original) (raw)

Walter Dörwald walter at livinglogic.de
Thu Aug 26 22:06:18 CEST 2004


Martin v. Löwis wrote:

Walter Dörwald wrote:

If a tuple is passed and returned this makes it possible from Python code to mangle the state. IMHO this should be avoided if possible. Not necessarily. We are all consenting adults. So if the code checks whether the state is sane, from a typing point of view, i.e. if you can't crash the interpreter, then there is no need to hide the state from the user.

OK, that's true. Unfortunately I'm not really that familiar with the bit twiddling in the UTF7 decoder to know it this could break anything or not.

Bye, Walter Dörwald



More information about the Python-Dev mailing list