[Python-ideas] Unicode surrogateescape [was: Re: Python 3000 TIOBE -3%]

Carl M. Johnson cmjohnson.mailinglist at gmail.com
Tue Feb 14 21:17:06 CET 2012


On Feb 14, 2012, at 10:04 AM, Jim Jewett wrote:

> But is there a good reason not to change the default errorhandler to
> errors="surrogateescape"?

It's a conflict in the Zen:

> Errors should never pass silently.
> Unless explicitly silenced.

OK, so default to strict. But:

> Although practicality beats purity.

Hmm, so maybe do use surrogates. Then again:

> In the face of ambiguity, refuse the temptation to guess.

Grr, I'm not nearly Dutch enough to make sense of this logical conflict!



More information about the Python-ideas mailing list