[pypy-issue] Issue #2514: Python REPL throws exception on fresh install of PyPy3 5.7 (pypy/pypy)

Vilhjalmur Thorsteinsson issues-reply at bitbucket.org
Thu Mar 23 12:11:33 EDT 2017


New issue 2514: Python REPL throws exception on fresh install of PyPy3 5.7
https://bitbucket.org/pypy/pypy/issues/2514/python-repl-throws-exception-on-fresh

Vilhjalmur Thorsteinsson:

After fresh install of PyPy3 5.7, going to the Python REPL and typing a simple expression, then pressing the Home and End keys a couple of times, leads to an exception:


```
#!bash

(p35) villi at 46:~/github/Reynir$ python
Python 3.5.3 (b16a4363e930, Mar 20 2017, 16:13:46)
[PyPy 5.7.0-beta0 with GCC 6.2.0 20160901] on linux
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``PyPy 2.0.1 released''
>>>> 2+2
4
>>>> Traceback (most recent call last):
  File "/home/villi/pypy35/lib_pypy/_pypy_interact.py", line 45, in interactive_console
    run_interactive(mainmodule)
  File "/home/villi/pypy35/lib_pypy/pyrepl/simple_interact.py", line 73, in run_multiline_interactive_console
    returns_unicode=True)
  File "/home/villi/pypy35/lib_pypy/pyrepl/readline.py", line 275, in multiline_input
    return reader.readline(returns_unicode=returns_unicode)
  File "/home/villi/pypy35/lib_pypy/pyrepl/reader.py", line 616, in readline
    self.handle1()
  File "/home/villi/pypy35/lib_pypy/pyrepl/reader.py", line 599, in handle1
    self.do_cmd(cmd)
  File "/home/villi/pypy35/lib_pypy/pyrepl/reader.py", line 546, in do_cmd
    cmd.do()
  File "/home/villi/pypy35/lib_pypy/pyrepl/commands.py", line 373, in do
    r.insert((self.event + r.console.getpending().data) * r.get_arg())
TypeError: unsupported operand type(s) for +: 'bytes' and 'str'
(p35) villi at 46:~/github/Reynir$


```
This is plain Debian8, accessed via MobaTek MobaXTerm. CPython 3.6 REPL Home/End keys work fine on same server through same terminal.




More information about the pypy-issue mailing list