Ronan Lamy pushed to branch branch/default at PyPy / pypy


Commits:
d507b530 by Antonio Cuni at 2019-11-22T12:06:26+01:00
Introduce rffi.constcharp2str, and improve the repr of low-level array
types.

Previously, you got annotation errors like this, which were VERY confusing:

  * UnionError:
    - SomePtr(ll_ptrtype=<* Array of Char >)
    - SomePtr(ll_ptrtype=<* Array of Char >)

Now you get the much more meaningful:

  * UnionError:
    - SomePtr(ll_ptrtype=<* Array of Char {'nolength': True} >)
    - SomePtr(ll_ptrtype=<* Array of Char {'render_as_const': True, 
'nolength': True} >)
(grafted from a8819c54139022030ec0590659baf30f2609314c)

- - - - -
11f2c966 by Antonio Cuni at 2019-11-23T12:06:05+01:00
fix these two tests which were failing after the change of the repr
(grafted from be27c10c92d185d336ffc57068f6b0ea9d28f802)

- - - - -
56bd787a by Antonio Cuni at 2020-03-25T17:55:23+01:00
Be more robust when defining w_* methods in applevel tests:

  - the old logic didn't work in case the function was defined at module 
level
    (i.e., when the function body was indented by 4 spaces)

  - the old logic assumed that the w_ method has the same name as its actual
    function
(grafted from 7bab68baace2f97e1fcea7abd966aaccae10dbd3)

- - - - -
a396de9b by Ronan Lamy at 2019-11-16T14:13:51+01:00
Fix cparser issue with struct types appearing in function arguments
(grafted from e2a687fd8ab37efd0d69808c1af4572834fbd549)

- - - - -
e39527a0 by Ronan Lamy at 2019-11-16T16:45:16+01:00
Add a cparser test
(grafted from 01381639f0d0c8658017a7d0a29e80800d337707)

- - - - -
be79be17 by Armin Rigo at 2019-11-16T17:55:57+01:00
(ronan, arigo)

Don't call PyErr_Occurred() when its result is not needed
(grafted from 30944126f7e1a268cc9a1ac6e24f9b014f46b362)

- - - - -


9 changed files:

- pypy/module/cpyext/api.py
- pypy/module/cpyext/cparser.py
- pypy/module/cpyext/test/test_cparser.py
- pypy/tool/pytest/apptest.py
- pypy/tool/pytest/test/test_pytestsupport.py
- rpython/jit/backend/llsupport/test/test_descr.py
- rpython/rtyper/lltypesystem/lltype.py
- rpython/rtyper/lltypesystem/rffi.py
- rpython/rtyper/lltypesystem/test/test_rffi.py


View it on GitLab: 
https://foss.heptapod.net/pypy/pypy/-/compare/6794e84e8b390c6342f9abe3a3f66ea5d479fda3...be79be1739128f654141591e7b48275b07cf6c54

-- 
View it on GitLab: 
https://foss.heptapod.net/pypy/pypy/-/compare/6794e84e8b390c6342f9abe3a3f66ea5d479fda3...be79be1739128f654141591e7b48275b07cf6c54
You're receiving this email because of your account on foss.heptapod.net.


_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to