[Python-3000] Immutable bytes type and dbm modules

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Aug 7 10:54:49 CEST 2007


Jeffrey Yasskin wrote:
> If you have mutable bytes and need an
> immutable object, you could 1) convert it to an int (probably
> big-endian),

That's not a reversible transformation, because you lose
information about leading zero bits.

> 4) use the deprecated str8 type

Which won't exist in Py3k, so it'll be a bit hard to use...

--
Greg


More information about the Python-3000 mailing list