#20635: py3 print in english documentation
-------------------------+-------------------------------------------------
Reporter: | Owner:
chapoton | Status: needs_work
Type: | Milestone: sage-7.3
enhancement | Resolution:
Priority: major | Merged in:
Component: | Reviewers: Jori Mäntysalo
python3 | Work issues:
Keywords: | Commit:
Authors: | 76d9d734e338953d10aaeac5f142cd7a226fe07d
Frédéric Chapoton | Stopgaps:
Report Upstream: N/A |
Branch: |
public/20635 |
Dependencies: |
-------------------------+-------------------------------------------------
Changes (by jmantysalo):
* status: needs_review => needs_work
Comment:
Please check `modabvar.rst`:
{{{
- sage: for x in R.gens(): print x.matrix(),'\n'
+ sage: for x in R.gens():
+ ....: print(x.matrix())
}}}
I think that you missed one `\n`. It is OK, if you did that on purpose.
Also are these equivalent:
{{{
- print u,v,find_reflection(u,v)
+ print((u,v,find_reflection(u,v)))
}}}
I think that the latter one will print a tuple, first one noe.
This has no error but I don't like mixing explicit print and implicit
printing of last return value in
{{{
print("An order two subgroup:"); sg[1].list()
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/20635#comment:5>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.