[issue9276] pickle should support methods

Alexander Belopolsky report at bugs.python.org
Mon Aug 2 16:56:13 CEST 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

On Mon, Aug 2, 2010 at 10:32 AM, Jean-Paul Calderone
<report at bugs.python.org> wrote:
>
> Jean-Paul Calderone <exarkun at twistedmatrix.com> added the comment:
>
>> I also like Antoine's idea of pickling the function/method name instead of the whole code object.
>
> I like it too.  That's why I suggested it in the first comment on the ticket (read the linked
> code).  I guess Alexander likes it too, since he basically said as much in the second
> comment. ;)

Yes, I think we have a consensus on this point. Note, however that
since unbound methods have been removed in 3.x, it is not trivial to
find a fully qualified name of a method anymore.   Also we need to
decide where to stop: should methods of nested classes be pickleable?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9276>
_______________________________________


More information about the Python-bugs-list mailing list