Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 301691 - dev-lang/python: Pickling of classes with a metaclass
Summary: dev-lang/python: Pickling of classes with a metaclass
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL: http://bugs.python.org/issue7689
Whiteboard:
Keywords:
Depends on:
Blocks: 201321
  Show dependency tree
 
Reported: 2010-01-21 08:07 UTC by François Bissey
Modified: 2013-01-17 08:02 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description François Bissey 2010-01-21 08:07:35 UTC
I am quoting from the upstream bug:
Currently, it's impossible to use the usual pickle mechanisms to pickle a dynamically created class, even if the user requests a different pickling mechanism via copy_reg.

---------
As mentioned in the upstream bug, this behavior is needed for the
proper working of sage [bug #201321].
We have tested the patch attached to the upstream bug in the sage-on-gentoo overlay without any ill effect. Of course it solved a good number of issues
we had with sage.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2010-01-26 06:04:35 UTC
So sage tries to use Python features that Python doesn't (yet) provide through an internally shipped and patched Python interpreter? I don't see why the python team needs to know this, but OK...
Comment 2 François Bissey 2010-01-26 06:41:15 UTC
(In reply to comment #1)
> So sage tries to use Python features that Python doesn't (yet) provide through
> an internally shipped and patched Python interpreter? I don't see why the
> python team needs to know this, but OK...
> 

I talked to the person handling it in sage and who filled the upstream bug.
He consider this more like a bug rather than a feature. This should be the
behavior. Of course it is a corner case which doesn't matter for most people.

Now, if we want to integrate sage into portage in the future, we want it
as split components coming from the system rather than duplicating stuff
in a monolithic build. python is one such component, along with quite a few
python packages, it is essential for us to have this functionality or we
may just as well give up.

So we currently have a patched ebuild in our overlay but it would be nice
if upstream and Gentoo themselves were moving it along.
As mentioned it is a corner case and doesn't appear to have any side effects. 
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-01-26 17:41:50 UTC
We won't accept any patches with such new features for dev-lang/python, which aren't backports from upstream repository.

Please reopen this bug, when this patch has been applied in upstream repository.
Comment 4 François Bissey 2011-10-04 21:24:09 UTC
This issue has now been reviewed upstream and will be included in python-2.7.3 and the next python-3.2.xx release.
Comment 6 Dirkjan Ochtman (RETIRED) gentoo-dev 2012-04-12 10:34:53 UTC
2.7.3 is hitting the tree shortly.
Comment 7 Siim Ainsaar 2013-01-17 05:59:49 UTC
Thus, is this bug fixed now?
Comment 8 François Bissey 2013-01-17 08:02:57 UTC
Yes it is!