[Python-ideas] new pickle semantics/API

Collin Winter collinw at gmail.com
Fri Jan 26 00:00:47 CET 2007

On 1/25/07, tomer filiba <tomerfiliba at gmail.com> wrote:
> On 1/25/07, Collin Winter <collinw at gmail.com> wrote:
> > How will e.g. classes be simplified? Can I simplify a dictionary with
> > function objects for values?
> it's good you mentioned that, because it reminded me of something
> i forgot. for instance, code objects will be serialized by value,
> so you could actually pickle functions and classes.

Are you intending to simplify code objects to the co_* attributes?
co_code is a string of interpreter-specific bytecode, which would be
pretty much useless outside of a copy() function.

Whatever the scheme, it will need to take into account cell objects and globals.

Collin Winter

More information about the Python-ideas mailing list