> Using any guessing based on the locale (which describes the codec used
> byt the user's console, but is completely uncorrelated to any particular
> file on the user's filesystem)

No, it's not just the encoding of the console. It is also the encoding
that text editors will use, in absence of a more specific direction.

> Any guessing at all should have to enabled by the application:  the
> library doesn't have enough information to make a non[-data-mangling
> guess in some of those cases.  Opening a file is one of those places
> where people need to think about the bytes vs. text problem:  we can't
> make that go away by playing whack-a-mole with the edge cases.

Many developers are completely unable to make that choice, as Python 2
has demonstrated.

Regards,
Martin
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to