[Python-3000] Unicode and OS strings (original) (raw)
Mike Klaas mike.klaas at gmail.com
Tue Sep 18 01:41:57 CEST 2007
- Previous message: [Python-3000] Unicode and OS strings
- Next message: [Python-3000] Unicode and OS strings
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 16-Sep-07, at 4:03 PM, Greg Ewing wrote:
Paul Moore wrote:
On 15/09/2007, Gregory P. Smith <greg at krypto.org> 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
- Previous message: [Python-3000] Unicode and OS strings
- Next message: [Python-3000] Unicode and OS strings
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]