[pypy-issue] Issue #2991: str.maketrans returns UTF-8 code points instead of Unicode code points (pypy/pypy)

Dingyuan Wang issues-reply at bitbucket.org
Wed Apr 3 10:06:46 EDT 2019


New issue 2991: str.maketrans returns UTF-8 code points instead of Unicode code points
https://bitbucket.org/pypy/pypy/issues/2991/strmaketrans-returns-utf-8-code-points

Dingyuan Wang:

The cpython 3.x and pypy 7.x before the utf-8 changes returns:

```
>>>> str.maketrans('啊', '阿')
{21834: 38463}
```

The new pypy3.6 7.2 (4547d8edb215) returns:

```
>>>> str.maketrans('啊', '阿')
{229: 233, 149: 152, 138: 191}
```




More information about the pypy-issue mailing list