Ticket #10640 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

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:

Attachments

trac_10640-documentation-fix_ag.patch Download (873 bytes) - added by agiorgetti 2 years ago.

Change History

comment:1 Changed 2 years ago by mvngu

  • Milestone set to sage-4.6.2

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 """.

Changed 2 years ago by agiorgetti

comment:2 Changed 2 years ago by agiorgetti

  • Status changed from new to needs_review
  • Authors set to Alain Giorgetti

comment:3 Changed 2 years ago by dpoulalhon

  • Status changed from needs_review to positive_review
  • Reviewers set to Dominique Poulalhon

comment:4 Changed 2 years ago by jdemeyer

  • Status changed from positive_review to closed
  • Resolution set to fixed
  • Merged in set to sage-4.6.2.alpha2
Note: See TracTickets for help on using tickets.