On 9/14/07, Greg Ewing <[EMAIL PROTECTED]> wrote:
> It would be pretty disruptive to ask everyone to change
> their habit of thinking of sys.argv as a list of strings.

Indeed.

> I would suggest doing it the other way around -- have
> sys.argv be an object that automatically converts to
> unicode on access, and something else, such as
> sys.argbytes, for getting the raw bytes if that fails.

Great idea, but sys.argv doesn't need to be magic for this approach to work.

If course os.environ would have to be treated similarly.

And things like the strings returned by the _locale module (I found at
least one test failing on Red Hat platforms because the thousands
separator is set to \xa0 in the Estonian locale).

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to