#14260: Casting a standard tableau as a tableau
----------------------------------+-----------------------------------------
Reporter: chrisjamesberg | Owner: sage-combinat
Type: defect | Status: needs_review
Priority: major | Milestone:
sage-duplicate/invalid/wontfix
Component: combinatorics | Resolution:
Keywords: tableau | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
----------------------------------+-----------------------------------------
Changes (by tscrim):
* status: new => needs_review
* type: PLEASE CHANGE => defect
* milestone: sage-5.9 => sage-duplicate/invalid/wontfix
Comment:
This is the desired and correct behavior. Elements (such as
[`Standard`]`Tableau`) are typically meant to be immutable, so something
which is a standard tableau should always remain a standard tableau. Also
because `Tableau` is only suppose to put a non-tableau object into a
tableau, it shouldn't do anything for any class which is a subclass of
`Tableau`.
Also I can't think of a good reason why you'd want to explicitly cast an
object into a subclass (the concept of type casing technically doesn't
exist in python). (I don't quite know what context this came up in, but
the first one that comes to mind is you're trying to get an overriden
method `foo(*args)` in the base class, to which you can do `Tableau.foo(t,
*args)`.) Could you explain more why you want this explicit casting?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14260#comment:2>
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.