[pypy-issue] Issue #1957: PyPy3: TypeError: Incorrect exception message (pypy/pypy)

Benjamen Keroack issues-reply at bitbucket.org
Thu Jan 8 22:15:48 CET 2015


New issue 1957: PyPy3: TypeError: Incorrect exception message
https://bitbucket.org/pypy/pypy/issue/1957/pypy3-typeerror-incorrect-exception

Benjamen Keroack:

Given the following test code:

```
#!python

def pxn_qxn(*, p, q, **kwargs):
    return p + q

pxn_qxn(p = 1)
```

CPython 3.4.2 produces the following error:

```
#!bash
TypeError: pxn_qxn() missing 1 required keyword-only argument: 'q'
```

PyPy3 2.4.0 produces the following incorrect error string:

```
#!bash
TypeError: pxn_qxn() takes no arguments (1 given)
```

This is incorrect (the function takes arguments).




More information about the pypy-issue mailing list