A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2009-August/091405.html below:

[Python-Dev] deleting setdefaultencoding iin site.py is evil

[Python-Dev] deleting setdefaultencoding iin site.py is evil [Python-Dev] deleting setdefaultencoding iin site.py is evil"Martin v. Löwis" martin at v.loewis.de
Thu Aug 27 10:06:40 CEST 2009
>      if hasattr(sys, "setdefaultencoding"):
> +        sys._setdefaultencoding = sys.setdefaultencoding
>          del sys.setdefaultencoding

Ah, so you didn't want to rename the function. I agree that this
would not break backwards compatibility.

I guess the basic objection remains: making it so would make
_setdefaultencoding a supported feature, which would then mean
that we should fix all the bugs that it causes - when we already
know (because we thought many years about this) that it is not
possible to implement setdefaultencoding correctly and efficiently
(so the current implementation is only efficient, but not correct).

Regards,
Martin
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4