[Python-3000] Immutable bytes type and dbm modules

"Martin v. Löwis" martin at v.loewis.de
Wed Aug 8 07:38:42 CEST 2007


>>> This would mean that the Unicode type would acquire all of the ambiquity
>>> currently associated with the 8-bit str type
>> Not necessarily, as this kind of use is typically very localized.
>> Remember practicality beats purity.
> 
> Has anyone considered that, depending on the implementation,
> a latin1-decoded unicode string could take 2-4 times as much
> memory?

I considered it, then ignored it. If you have the need for hashing,
the string won't be long.

Regards,
Martin


More information about the Python-3000 mailing list