#20536: py3 print in combinat (first step)
-------------------------+-------------------------------------------------
Reporter: | Owner:
chapoton | Status: needs_review
Type: | Milestone: sage-7.2
enhancement | Resolution:
Priority: major | Merged in:
Component: | Reviewers: Travis Scrimshaw
python3 | Work issues:
Keywords: | Commit:
Authors: | 94237e6d24ac5a91061adc0cc839f866fe9e1a6e
Frédéric Chapoton | Stopgaps:
Report Upstream: N/A |
Branch: |
public/20536 |
Dependencies: |
-------------------------+-------------------------------------------------
Changes (by tscrim):
* reviewer: => Travis Scrimshaw
Comment:
The outer set of parentheses in this change are not necessary:
{{{#!diff
sage: shift = lambda i: [(i+j)%2**3 for j in range(3)]
sage: for i in range(2**3):
- ... print (Word(map(lambda (j,b): b if j in shift(i) else '*',
- ...
enumerate(seq))).string_rep())
+ ....: print((Word(map(lambda (j,b): b if j in shift(i) else '*',
+ ....:
enumerate(seq))).string_rep()))
}}}
Once this change is made, you can set a positive review.
--
Ticket URL: <http://trac.sagemath.org/ticket/20536#comment:3>
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.