[Python-3000] Unicode and OS strings
Barry Warsaw
barry at python.org
Fri Sep 14 13:34:36 CEST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sep 14, 2007, at 5:15 AM, Hagen Fürstenau wrote:
> Is it too unreasonable to keep the byte strings we get from the OS as
> byte strings in Python (since we're not sure about their encoding) and
> offer functions for getting strings?
>
> sys.argv could be of type bytes and sys.arguments (or whatever)
> could be
> a function taking an encoding parameter (which defaults to UTF-8) and
> returning strings.
>
> Of course that's backwards incompatible and I'm not sure if it's too
> late for something like this now.
It might be reasonable and even necessary, but I suspect usability
will suffer.
- -Barry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
iQCVAwUBRupxzHEjvBPtnXfVAQJ1owP+OBzC2UfeU4rio8nQJgYHl33xZfsAmHkQ
Iv8188QzbCuypWQF/Zwr6i6yu+Kt64b0amDoYKI/VdnTceeC3u5ejSh66JocyP2X
SmNJYrt6aikFJTgs5nqAgAKQhcXfPNZh45tg/ZVsnpOro6juZTSgs+XO3b3g16VD
VSs//yDdL64=
=nBLI
-----END PGP SIGNATURE-----
More information about the Python-3000
mailing list