Ticket #10640 (closed defect: fixed)
Non interactive example in documentation of sage.combinat.cartesian_product.CartesianProduct(*iters)
| Reported by: | joudinet | Owned by: | mvngu |
|---|---|---|---|
| Priority: | trivial | Milestone: | sage-4.6.2 |
| Component: | documentation | Keywords: | beginner, days28 |
| Cc: | Work issues: | ||
| Report Upstream: | N/A | Reviewers: | Dominique Poulalhon |
| Authors: | Alain Giorgetti | Merged in: | sage-4.6.2.alpha2 |
| Dependencies: | Stopgaps: |
Description
Second example (about IterableFunctionCall?) in http://localhost:8000/doc/live/reference/sage/combinat/cartesian_product.html is bad formatted.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


We should have
sage: def a(n): yield 1*n; yield 2*n sage: def b(): yield 'a'; yield 'b' sage: CartesianProduct(a(3), b()).list() [[3, 'a'], [3, 'b']] sage: from sage.combinat.misc import IterableFunctionCall sage: CartesianProduct(IterableFunctionCall(a, 3), IterableFunctionCall\ (b)).list() [[3, 'a'], [3, 'b'], [6, 'a'], [6, 'b']] See the documentation for IterableFunctionCall for more information. """Note that the word "See" should align with the triple double quotation marks """.