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/091399.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 evilChris Withers chris at simplistix.co.uk
Thu Aug 27 09:27:01 CEST 2009
Martin v. Löwis wrote:
>>> In retrospect, it should have been called sys._setdefaultencoding().
>>> That sends an extra signal that it's not meant for general use.
>> Crazy idea: how about mutating it into sys._setdefaultencoding rather
>> than deleting it?
> 
> Please don't post crazy ideas unless you really mean them.
> 
> This specific crazy idea must be rejected; it would break backwards
> compatibility, for no good reason.

How is it breaking backwards compatibility?

- If people were somehow relying on sys.setdefaultencoding to be 
deleted, that's fine, it's still gone

- If people were somehow relying on sys not having an attribute called 
_setdefaultencoding, or were relying on stuffing an attribute into sys 
called _setdefaultencoding then... well... that seems pretty unlikely ;-)

Chris

-- 
Simplistix - Content Management, Batch Processing & Python Consulting
            - http://www.simplistix.co.uk
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