#15282: Labelling of product posets seem to normalize the labels of the posets
-------------------------------------+-------------------------------------
       Reporter:  darij              |        Owner:
           Type:  defect             |       Status:  positive_review
       Priority:  major              |    Milestone:  sage-
      Component:  categories         |  duplicate/invalid/wontfix
       Keywords:  posets,            |   Resolution:
  finite_posets, sage-combinat       |    Merged in:
        Authors:                     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------
Changes (by ncohen):

 * status:  needs_review => positive_review


Comment:

 Jori,

 When you change the milestone to wontfix, please change the status to
 `positive_review` at the same time.

 About the `(a,b,c)` instead of `((a,b),c)` thing: it is not that
 complicated to accept such input if you need it:

 {{{
 sage: def a(*args,**kwds):
 ....:         print args
 ....:         print kwds
 ....:
 sage: a(1,2,3,5,labels=True)
 (1, 2, 3, 5)
 {'labels': True}
 }}}

 In this case, "args" will be a list of posets that you need to transform
 into a big poset, and `kwds` will be the union of all "named" arguments.

 Two things to pay attention to:

 1) When building the final poset, it is best to do it all at once and not
 two by two (faster)

 2) Always check that `kwds` does not contain something unexpected.
 Otherwise, this function would say nothing when you call
 `a(1,2,3,labelss="True")` and it is painful to find such typos when you
 have a bug in your code.

 Nathann

--
Ticket URL: <http://trac.sagemath.org/ticket/15282#comment:10>
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.

Reply via email to