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/2002-February/020465.html below:

[Python-Dev] PEP 263 -- Python Source Code Encoding

[Python-Dev] PEP 263 -- Python Source Code Encoding [Python-Dev] PEP 263 -- Python Source Code EncodingGuido van Rossum guido@python.org
Wed, 27 Feb 2002 09:42:09 -0500
> > (I'd still *prefer* it the other way around, where you have to specify
> > an explicit option to make the default equal to the locale rather than
> > ASCII, but I can see the other side.  Sigh.)
> 
> Let's put it this way: the interpreter's default encoding has
> to be changed explicitly by the sys admin (in sitecustomize.py),
> so the decision to take e.g. a locale specific default encoding
> is one which the admin maintaining the installation has
> to make (with all the consequences that go with it).

OK.  I missed that part -- I thought that it would look in the locale
by default.

> Per default, the default encoding is ASCII, so I don't
> think we really need an extra option. 

Agreed.

> Hmm, could be that python -S already implies this, BTW...

:-)

> checking this reveils that even sys.setdefaultencoding()
> remains available if -S is used. Perhaps we should remove
> the API with -S too ?!

I don't think so.  It should be left in, caveat emptor.

--Guido van Rossum (home page: http://www.python.org/~guido/)



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