#16077: Python 3 preparation: Handle changes to "raw_input()" and "input()"
-------------------------------------+-------------------------------------
Reporter: wluebbe | Owner:
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-6.8
Component: distribution | Resolution:
Keywords: python3 | Merged in:
Authors: André Apitzsch | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/aapitzsch/ticket/16077 | ebbb5451fd9880273f7138bcb517c11b68a5badb
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by aapitzsch):
Replying to [comment:4 wluebbe]:
> {{{
> +from six.moves import input
> ...
> ...
> - line = raw_input()
> + line = input()
> }}}
would override Python2's `input()` which behaves different, as written in
the ticket description. That's why I went the other way.
Cleaning is easy, too: `s/six.moves.//g`
--
Ticket URL: <http://trac.sagemath.org/ticket/16077#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 http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.