#10962: Set_PythonType objects are not picklable
-------------------------------------+-------------------------------------
Reporter: stumpc5 | Owner: was
Type: defect | Status: needs_review
Priority: major | Milestone: sage-6.5
Component: pickling | Resolution:
Keywords: | Merged in:
Authors: Vincent Delecroix | Reviewers: Jeroen Demeyer
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/jdemeyer/ticket/10962 | edf526e2a9b181c058620e1b42b1b378c37d99a7
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by vdelecroix):
Replying to [comment:22 nthiery]:
> Replying to [comment:15 vdelecroix]:
> > Replying to [comment:13 jdemeyer]:
> > > Question: would it be valid to use `Set_PythonType()` on a
`Category` instead of a `type`?
> >
> > No. By the way I do not understand why `Posets` and `Sequences` are
categories and not `Parent`...
>
> The category corresponding to `Parent` is `Sets`. Now, why is there both
`Parent` and `Sets`? The latter is an abstract class, while the former is
a concrete implementation (and currently the only concrete base
implementation; but we could imagine having others). Of course, a lot of
the current features of `Parent` really should be moved up in `Sets` or in
other categories. Some just need to be taken care of (handling some
backward compatibility issues). Some are more intrinsically difficult
> because of the lack of multiple inheritance in Cython; that's analog to
the `Ring` versus `Rings`
> situation.
Thanks Nicolas. But I do not understand why it is an answer to my
question: "why Posets and Sequences are categories and not Parent?" As far
as I understand, to declare something to have a category it needs to
inherit from Parent (via `Parent.__init__(category=XYZ)`). So I do not see
how to avoid `Parent` by "having others".
The issue of `Ring` versus `Rings` has nothing to do with my question, or
I missed something.
Vincent
--
Ticket URL: <http://trac.sagemath.org/ticket/10962#comment:24>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.