#15525: More partition parents and fixes to global options
----------------------------+----------------------------------------------
Reporter: tscrim | Owner: sage-combinat
Type: enhancement | Status: new
Priority: major | Milestone: sage-6.1
Component: | Keywords: partitions, global options
combinatorics | Authors: Travis Scrimshaw
Merged in: | Report Upstream: N/A
Reviewers: | Branch:
Work issues: | Dependencies:
Commit: |
Stopgaps: |
----------------------------+----------------------------------------------
Currently the following breaks:
{{{
sage: P = Partitions(5, max_length=4)
sage: loads(dumps(P))
}}}
since `PartitionOptions` does not pickle, hence the `IntegerListsLex`,
which takes it as an (optional) input, does not.
The proposed solution is two-fold:
- Add a class for partitions that inherit from `IntegerListsLex` (or use
it as an iterator).
- Add a warning when using the `global_options` parameter that the
resulting class might not pickle.
Here's also a discussion on sage-combinat-devel:
https://groups.google.com/forum/?fromgroups=#!topic/sage-combinat-
devel/Hyak8ndRi4o
I'm also going to add parent classes for k-regular partitions.
--
Ticket URL: <http://trac.sagemath.org/ticket/15525>
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/groups/opt_out.