Roundup Robot added the comment:
New changeset f2bae047f6d0 by Yury Selivanov in branch 'default':
inspect.docs: Document that Signature and Parameter are now picklable (issue
#20726)
http://hg.python.org/cpython/rev/f2bae047f6d0
--
___
Python
Roundup Robot added the comment:
New changeset 0a8e3c910c0a by Yury Selivanov in branch 'default':
inspect.signature: Make Signature and Parameter picklable. Closes #20726
http://hg.python.org/cpython/rev/0a8e3c910c0a
--
nosy: +python-dev
resolution: - fixed
stage: -
STINNER Victor added the comment:
Why not backporting this change to Python 3.4? Would it break something?
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20726
___
Antoine Pitrou added the comment:
Picklability is more of a new feature than a bugfix.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20726
___
Changes by Yury Selivanov yselivanov...@gmail.com:
Added file: http://bugs.python.org/file34217/sig_picklable_03.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20726
___
Antoine Pitrou added the comment:
For extra points, you could test with all protocol versions (from 0 to
HIGHEST_PROTOCOL).
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20726
Yury Selivanov added the comment:
For extra points, you could test with all protocol versions (from 0 to
HIGHEST_PROTOCOL).
Good idea, see the second patch.
--
Added file: http://bugs.python.org/file34186/sig_picklable_02.patch
___
Python tracker
New submission from Yury Selivanov:
There is no reason for Signature objects to be not picklable.
Patch is attached (it will require merging #19573 before).
--
assignee: yselivanov
files: sig_picklable_01.patch
keywords: patch
messages: 211903
nosy: larry, ncoghlan, yselivanov
priority: