#19737: SetPartition.to_permutation().cycle_tuples() is not the identity
-------------------------------------+-------------------------------------
Reporter: mantepse | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: sage-7.0
Component: combinatorics | Resolution:
Keywords: set partitions, | Merged in:
permutations | Reviewers:
Authors: Martin Rubey | Work issues:
Report Upstream: N/A | Commit:
Branch: | c6a3939d2e18efe3906e1f959dc5c019c921a944
u/mantepse/setpartition_to_permutation___cycle_tuples___is_not_the_identity|
Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by ncohen):
> Turning {{{SetPartition}}} into a function would really be a completely
new design. Out of curiosity: why would you dislike this solution, too?
Because I love simple things. From time to time I have to touch combinat
code, and from time to time I have to use 'isinstance'. And, well,
`isinstance(my_object,IncidenceStructure)` works but
`isinstance(my_object,Poset)` does not, because the first is a class while
the other is not.
Usually in Sage we have a way to tell whether something is a function or a
class: MyClass is a class, and `my_function` is a function.
But well, what is true in Sage and what is true in the combinat/ folder
are different things.
Nathann
--
Ticket URL: <http://trac.sagemath.org/ticket/19737#comment:26>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.