> > (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