Windows XP - Environment variable - Unicode

John Roth newsgroups at
Sun Jul 13 20:38:29 CEST 2003

"Martin v. Löwis" <martin at> wrote in message
news:bert0r$o6$01$1 at
> John Roth wrote:
> > Good point. That does make it somewhat harder; the routine
> > would have to precompute both versions, and store them with
> > both standard strings and unicode strings as keys.
> That doesn't work. You cannot have separate dictionary entries
> for unicode and byte string keys if the keys compare and hash
> equal, which is the case for all-ASCII keys (which environment
> variable names typically are).

Ah, so.

John Roth
> Regards,
> Martin

More information about the Python-list mailing list