#17776: Make python scripts in src/bin python3 compatible
-------------------------------------+-------------------------------------
Reporter: aapitzsch | Owner:
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-6.5
Component: scripts | Resolution:
Keywords: python3 | Merged in:
Authors: André Apitzsch | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/aapitzsch/ticket/17776 | e6b9e378f3cddf12b16fa9c49e087df0151cd3bc
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by jhpalmieri):
The change in `sage-num-threads.py` gives an error (when run from a Sage
shell):
{{{
$ sage-num-threads.py
File "/Users/jpalmier/Desktop/Sage_stuff/git/sage/src/bin/sage-num-
threads.py", line 180
print(*num_threads())
^
SyntaxError: invalid syntax
}}}
I guess you need `from __future__ import print_function` at the beginning
of that file; at least, that fixes it for me.
Similarly, the change in `sage-coverageall` turns the output
{{{
Total number of functions: 37429
}}}
into
{{{
('Total number of functions: ', 37429)
}}}
Either adding a `from __future__ ...` statement or using `.format`
appropriately would fix it.
Otherwise, I think it looks okay.
--
Ticket URL: <http://trac.sagemath.org/ticket/17776#comment:6>
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 http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.