[Python-3000] Immutable bytes type and dbm modules

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Aug 8 04:57:30 CEST 2007


Talin wrote:
> 4) Literals of both types are available - using a prefix of small 'b' 
> for bytes, and capitol B for 'buffer'.

I don't see that it would be really necessary to have a
distinct syntax for a buffer constructor (no literal!)
because you could always write

   buffer(b"...")

This is what it would have to be doing underneath
anyway.

--
Greg


More information about the Python-3000 mailing list