[issue1398] Can't pickle partial functions

Stefan Sonnenberg-Carstens report at bugs.python.org
Thu Nov 8 17:49:26 CET 2007


Stefan Sonnenberg-Carstens added the comment:

You are using an old protocol version

pickle.dumps(partial_f,2)

does the trick:

>>> pickle.dumps(partial_f,2)
'\x80\x02cfunctools\npartial\nq\x00)\x81q\x01}q\x02b.'

----------
nosy: +pythonmeister

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1398>
__________________________________


More information about the Python-bugs-list mailing list