[MacPorts] #48911: Output problem with Python 3.5 REPL
MacPorts
noreply at macports.org
Fri Sep 18 11:46:11 PDT 2015
#48911: Output problem with Python 3.5 REPL
--------------------+--------------------------------
Reporter: ronf@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.3
Keywords: | Port: python35
--------------------+--------------------------------
I installed the Python 3.5 port (@3.5.0) today on my 2011 iMac running
Yosemite 10.10.5. When I tried to use the interactive read-eval-print
loop, I saw an immediate problem with the printing of the prompt:
{{{
Python 3.5.0 (default, Sep 15 2015, 23:58:24)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 1+2
>>> 3
}}}
The second ">>>" prompt was printed before the result of the evaluation.
This same output on Python 3.4 is:
{{{
Python 3.4.3 (default, Sep 4 2015, 09:52:14)
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 1+2
3
>>>
}}}
With 3.5, the prompt is printed too early and the cursor ends up on a
blank line, but it does properly still accept another expression,
repeating the problem with the prompt again on that evaluation. Hitting
Ctrl-D to exit also prints an extra prompt before exiting:
{{{
Python 3.5.0 (default, Sep 15 2015, 23:58:24)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 1+2
>>> 3
3+4
>>> 7
^D>>>
}}}
After a bit more experimentation, I was able to produce a similar problem
with the Python 3.4 port, but only when I uninstalled the "py34-readline"
package. In that case, both Python 3.4 (@3.4.3_5) and Python 3.5 (@3.5.0)
have this issue. However, with "py34-readline" installed, the problem goes
away. Unfortunately, there's no "py35-readline" package yet, so I can't
test that as a possible solution.
--
Ticket URL: <https://trac.macports.org/ticket/48911>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list