[Python-porting] Pickling unbound methods on Python 3

Lennart Regebro regebro at gmail.com
Sat May 29 19:41:25 CEST 2010


On Sat, May 29, 2010 at 18:40, cool-RR <cool-rr at cool-rr.com> wrote:
> I see. Where would be a good place to discuss this decision? I would want
> 3.2 to allow pickling of unbound methods.

That would be python-dev at python.org

However, it has already been discussed:

  http://mail.python.org/pipermail/python-dev/2005-January/050625.html
  http://mail.python.org/pipermail/python-dev/2007-November/075279.html

It turns out, even the pickling argument was discussed.

  http://mail.python.org/pipermail/python-dev/2005-January/051143.html

Essentially, the argument is that it's easier to use a function
instead of writing a pickler for a method in the first case, so
support for pickling unbound methods isn't a high priority as there
are easier and less magic ways to solve the use case.


I know that's not what you want to hear, but that's likely to be the
answer you'll get.

-- 
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64


More information about the Python-porting mailing list