[Python-3000] marshalling bytes objects
Neal Norwitz
nnorwitz at gmail.com
Sat Aug 25 18:30:58 CEST 2007
On 8/25/07, Guido van Rossum <guido at python.org> wrote:
> Can we put this decision off till after the a1 release?
Yes.
> At this point
> I don't expect PyString to be removed in time for the release, which I
> want to be done by August 31.
Agreed. I plan to make a patch for this and upload it. All tests
except modulefinder pass (I'm not sure why). There is a hack in
marshal to convert co_code and co_lnotab to a bytes object after
reading in a string.
n
--
>
> On 8/24/07, Neal Norwitz <nnorwitz at gmail.com> wrote:
> > On 8/24/07, Neal Norwitz <nnorwitz at gmail.com> wrote:
> > > I see in PEP 358 (bytes) http://www.python.org/dev/peps/pep-0358/ that
> > > marshalling bytes is an open issue and needs to be specified. I'm
> > > converting code objects to use bytes for the bytecode and lnotab. Is
> > > there anything special to be aware of here?
> >
> > By "here" I was originally thinking about the marshaling aspect. But
> > clearly the mutability of bytes isn't particularly good for code
> > objects. :-) This goes back to the question of whether bytes should
> > be able to be immutable (frozen).
>
> --
> --Guido van Rossum (home page: http://www.python.org/~guido/)
>
More information about the Python-3000
mailing list