[Python-3000] Thoughts on new I/O library and bytecode

Gareth McCaughan gareth.mccaughan at pobox.com
Sat Mar 3 23:58:53 CET 2007


On Saturday 03 March 2007 16:02, I wrote:

> Here's an ugly, impure, but possibly practical answer:
> give each bytes object a single-bit flag meaning something
> like "mostly textual";
...
> Obviously the flag wouldn't affect comparisons or hashing.

Josiah Carlson mailed me to point out that, duh, obviously
the flag wouldn't affect hashing since bytes objects are
mutable and therefore unhashable. :-)

-- 
g


More information about the Python-3000 mailing list