#17142: Return type of some poset functions
-------------------------------------+-------------------------------------
Reporter: jmantysalo | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-wishlist
Component: combinatorics | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/jmantysalo/return_type_of_some_poset_functions|
577b688a805235e5c89b13db8e94d6e642dbb675
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by ncohen):
* commit: => 577b688a805235e5c89b13db8e94d6e642dbb675
Comment:
Yo !
It looks good but instead of
{{{
if A:
return C1(<long things>)
if B:
return C2(<long things>)
}}}
You can do
{{{
if A:
constructor = C1
elif B:
constructor = C2
return constructor(<long things>)
}}}
Nathann
----
New commits:
||[http://git.sagemath.org/sage.git/commit/?id=577b688a805235e5c89b13db8e94d6e642dbb675
577b688]||{{{Make relabeling a lattice to return lattice, not poset.}}}||
--
Ticket URL: <http://trac.sagemath.org/ticket/17142#comment:3>
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.