[pypy-issue] Issue #3064: curses: get_wch return value inconsistent with cpython (pypy/pypy)
Anthony Sottile
issues-reply at bitbucket.org
Sat Aug 31 17:16:31 EDT 2019
New issue 3064: curses: get_wch return value inconsistent with cpython
https://bitbucket.org/pypy/pypy/issues/3064/curses-get_wch-return-value-inconsistent
Anthony Sottile:
```python
import curses
def c_main(stdscr):
ch = stdscr.get_wch()
assert isinstance(ch, str), ch
curses.wrapper(c_main)
```
Run this and type “a” on the keyboard
In CPython this does nothing
In pypy3.6 I get:
```shell
$ pypy3 t.py
Traceback (most recent call last):
File "t.py", line 8, in <module>
curses.wrapper(c_main)
File "/home/asottile/opt/pypy3.6-v7.1.1-linux64/lib-python/3/curses/__init__.py", line 94, in wrapper
return func(stdscr, *args, **kwds)
File "t.py", line 5, in c_main
assert isinstance(ch, str), ch
AssertionError: 97
```
```
$ pypy3 --version
Python 3.6.1 (784b254d6699, Apr 14 2019, 10:22:42)
[PyPy 7.1.1-beta0 with GCC 6.2.0 20160901]
```
More information about the pypy-issue
mailing list