#18223: cartesian products with orders
-------------------------------------+-------------------------------------
       Reporter:  dkrenn             |        Owner:
           Type:  enhancement        |       Status:  needs_info
       Priority:  major              |    Milestone:  sage-6.7
      Component:  categories         |   Resolution:
       Keywords:  sd67               |    Merged in:
        Authors:  Daniel Krenn       |    Reviewers:  Benjamin Hackl
Report Upstream:  N/A                |  Work issues:
         Branch:  u/dkrenn/cat       |       Commit:
  /cartesian-product-posets          |  f3b1387b378ce406e04c6f45c6629595a46640c8
   Dependencies:  #18586             |     Stopgaps:
-------------------------------------+-------------------------------------
Changes (by vdelecroix):

 * status:  needs_review => needs_info


Comment:

 Replying to [comment:35 dkrenn]:
 > Replying to [comment:32 vdelecroix]:

 > > 10. In the documentation <...>
 >
 > `order_le` is not a keyword. I've rewritten the doc to avoid this
 confusion.

 got it ;-)

 > > 12. What is the point of adding `*kwargs` in the `__init__` method of
 `CartesianProduct`? If this argument is not supported then it should
 simply not exists.
 >
 > This boils down to our discussion from #18586: They are passed on to
 `CartesianProduct` where there is at least a `flatten` keyword. Thus there
 is a keyword, so arguments are simply passed.

 I still do not understand at all. I am talking about
 `sage.sets.cartesian_product.CartesianProduct`. Its constructor does not
 pass its arguments to anybody. What is the subtle difference in behaviour
 between `f` and `g` below?
 {{{
 def f(**kwds):
    if kwds:
        raise TypeError
    ...

 def g():
     ...
 }}}
 The only thing I see is that it needs much more to write `f`.

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