[Python-3000] Unicode and OS strings (original) (raw)
Hagen Fürstenau hfuerstenau at gmx.net
Sat Sep 15 12:44:09 CEST 2007
- Previous message: [Python-3000] Unicode and OS strings
- Next message: [Python-3000] Move argv[0]? (Re: Unicode and OS strings)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
It would be pretty disruptive to ask everyone to change their habit of thinking of sys.argv as a list of strings.
The idea behind this was that it would preserve the non-decoding behaviour of the present sys.argv and put the new behaviour into a new function.
Also "argv" sounds more low-level than something like "arguments". But of course, "argbytes" sounds even more low-level. :-)
- Hagen
- Previous message: [Python-3000] Unicode and OS strings
- Next message: [Python-3000] Move argv[0]? (Re: Unicode and OS strings)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]