[Python-3000] bug in i/o module buffering?
Bill Janssen
janssen at parc.com
Sun Oct 28 19:28:14 CET 2007
Jim Jewett wrote:
> On 10/27/07, Bill Janssen <janssen at parc.com> wrote:
>
> > > > File "/local/python/3k/src/Lib/io.py", line 455, in read
> > > > del b[n:]
> > > > TypeError: 'slice' object does not support item deletion
>
> > b = bytes(n.__index__())
>
> Isn't bytes the *im*mutable bytestring, so that you would need a
> buffer (rather than a bytes) if you plan to clear it out?
I think when this code was written, "bytes" was mutable (that's why it
couldn't be a key in a dict). If I understand the grand plan
correctly, "bytes" will become "buffer" (mutable), and "str8" will
become "bytes" (immutable).
Bill
More information about the Python-3000
mailing list