[issue9276] pickle should support methods

Ram Rachum report at bugs.python.org
Tue Mar 1 20:49:24 CET 2011


Ram Rachum <cool-rr at cool-rr.com> added the comment:

Raymond: I don't think this matters. We don't need a canonical `.__parent_class__`, we just need to know where that function is defined so we could find it when unpickling. In the example that you gave, `f` would have a `.__parent_class__` of `None`, and it would be pickleable because it would be found on the top-level of the module it's defined on.

----------

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


More information about the Python-bugs-list mailing list