[Python-Dev] deleting setdefaultencoding iin site.py is evil
Stephen J. Turnbull
stephen at xemacs.org
Thu Aug 27 12:29:52 CEST 2009
Chris Withers writes:
> > How can you be certain that any string is UTF-8 when doing any
> > reasonable IO?
> Careful checking, and a knowledge for people working on the app's
> development that anything else will result in severe pain, both physical
> and mental ;-)
If you're *that* careful, the additional effort to hack around this is
negligible. The problem is that most people are *never* that careful,
and *all* people are rarely that careful.
I understand your use case, but I don't see a case for exposing this
to the general public.
More information about the Python-Dev