On 16-Sep-07, at 4:03 PM, Greg Ewing wrote:

> Paul Moore wrote:
>> On 15/09/2007, Gregory P. Smith <[EMAIL PROTECTED]> wrote:
>>
>>> similarly for the environment.  os.environ dict
>>> should be bytes object keys and values
>>
>> You can't have bytes as keys - the type isn't hashable...
>
> Has there been any consensus reached yet on whether
> there will be a frozenbytes type? I can see the
> non-hashability of bytes leading to lots of
> annoyances like this.

Might it make things clearer to use something other than the X/ 
frozenX nomenclature?

bytes -> b'HELO' -> immutable octet list

bytebuf -> mutable octet buffer (current bytes() objects)

buf = bytebuf()
buf.append(read(1024))
print buf

bytebuf(b'HELO')

-Mike
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to