#10640: Non interactive example in documentation of
sage.combinat.cartesian_product.CartesianProduct(*iters)
-----------------------------+----------------------------------------------
   Reporter:  joudinet       |       Owner:  mvngu           
       Type:  defect         |      Status:  new             
   Priority:  trivial        |   Milestone:  sage-4.6.2      
  Component:  documentation  |    Keywords:  beginner, days28
     Author:                 |    Upstream:  N/A             
   Reviewer:                 |      Merged:                  
Work_issues:                 |  
-----------------------------+----------------------------------------------
Changes (by mvngu):

  * milestone:  => sage-4.6.2


Comment:

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

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10640#comment:1>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to