Windows XP - Environment variable - Unicode

John Roth newsgroups at jhrothjr.com
Sun Jul 13 14:38:29 EDT 2003


"Martin v. Löwis" <martin at v.loewis.de> wrote in message
news:bert0r$o6$01$1 at news.t-online.com...
> 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