Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non interactive example in documentation of sage.combinat.cartesian_product.CartesianProduct(*iters) #10640

Closed
sagetrac-joudinet mannequin opened this issue Jan 18, 2011 · 5 comments

Comments

@sagetrac-joudinet
Copy link
Mannequin

sagetrac-joudinet mannequin commented Jan 18, 2011

Second example (about IterableFunctionCall) in http://localhost:8000/doc/live/reference/sage/combinat/cartesian_product.html is bad formatted.

Component: documentation

Keywords: days28

Author: Alain Giorgetti

Reviewer: Dominique Poulalhon

Merged: sage-4.6.2.alpha2

Issue created by migration from https://trac.sagemath.org/ticket/10640

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Jan 18, 2011

comment:1

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

@sagetrac-mvngu sagetrac-mvngu mannequin added this to the sage-4.6.2 milestone Jan 18, 2011
@sagetrac-agiorgetti
Copy link
Mannequin

sagetrac-agiorgetti mannequin commented Jan 18, 2011

comment:2

Attachment: trac_10640-documentation-fix_ag.patch.gz

@sagetrac-agiorgetti
Copy link
Mannequin

sagetrac-agiorgetti mannequin commented Jan 18, 2011

Author: Alain Giorgetti

@sagetrac-dpoulalhon
Copy link
Mannequin

sagetrac-dpoulalhon mannequin commented Jan 19, 2011

Reviewer: Dominique Poulalhon

@jdemeyer
Copy link

Merged: sage-4.6.2.alpha2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant