On 9/15/07, Paul Moore <[EMAIL PROTECTED]> wrote:
> On 15/09/2007, Gregory P. Smith <[EMAIL PROTECTED]> wrote:
> > similarly for the environment.  os.environ dict
> > should be bytes object keys and values
>
> You can't have bytes as keys - the type isn't hashable...

ugh, yeah.  as much as i hate to suggest it given my preference for
keeping any encoding out of automatic environment and argument
parsing, just make os.environ keys be latin-1 encoding or make them a
hashable subclass of bytes (yuck or yuck).  someone on windows should
check to see if it allows evil such as utf16 environment variable
names first (i'd hope not, that'd break traditional C/C++ code).
_______________________________________________
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