Windows XP - Environment variable - Unicode

"Martin v. Löwis" martin at v.loewis.de
Sun Jul 13 11:14:37 EDT 2003


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).

Regards,
Martin





More information about the Python-list mailing list