[pypy-commit] [Git][pypy/pypy][branch/stdlib-2.7.18-3] 5 commits: Fix handling escape characters in HZ codec (bpo-30003)

Stefano Rivera foss at heptapod.net
Sat Oct 3 01:46:46 EDT 2020



Stefano Rivera pushed to branch branch/stdlib-2.7.18-3 at PyPy / pypy


Commits:
64ab68e9 by Ronan Lamy at 2019-10-16T17:57:57+01:00
Fix handling escape characters in HZ codec (bpo-30003)

--HG--
branch : stdlib-2.7.18-3

- - - - -
a9fb5988 by Stefano Rivera at 2020-10-02T22:06:02-07:00
Handle NULL argument to PyLong_AsUnsignedLongLongMask

As used in test_long_as_unsigned_long_long_mask in _testcapimodule

--HG--
branch : stdlib-2.7.18-3

- - - - -
457bbd3b by Stefano Rivera at 2020-10-02T21:39:21-07:00
Swallow exceptions in PySlice_GetIndices

PySlice_GetIndicesEx is the improved version that raises exceptions.

As the cPython docs say:

> Returns 0 on success and -1 on error with no exception set (unless one of the
> indices was not None and failed to be converted to an integer, in
> which case -1 is returned with an exception set).
>
> You probably do not want to use this function. If you want to use slice
> objects in versions of Python prior to 2.3, you would probably do well to
> incorporate the source of PySlice_GetIndicesEx(), suitably renamed, in the
> source of your extension.

--HG--
branch : stdlib-2.7.18-3

- - - - -
d4de7d26 by Stefano Rivera at 2020-10-02T21:24:16-07:00
PyBuffer_To/FromContiguous were implemented in 94ab09b73962

--HG--
branch : stdlib-2.7.18-3

- - - - -
32d0cb16 by Stefano Rivera at 2020-10-02T18:15:37-07:00
Update _ctypes_test to 2.7.18

--HG--
branch : stdlib-2.7.18-3

- - - - -


9 changed files:

- lib-python/2.7/test/test_capi.py
- lib_pypy/_ctypes_test.c
- lib_pypy/_testcapimodule.c
- pypy/module/_multibytecodec/src/cjkcodecs/_codecs_cn.c
- pypy/module/_multibytecodec/test/test_c_codecs.py
- pypy/module/cpyext/longobject.py
- pypy/module/cpyext/sliceobject.py
- pypy/module/cpyext/test/test_longobject.py
- pypy/module/cpyext/test/test_sliceobject.py


View it on GitLab: https://foss.heptapod.net/pypy/pypy/-/compare/8a37c3104d993fe1f6ebcb64b8d405b30be91cf4...32d0cb168268ec6f8d05f3ce02f38c583815e8c2

-- 
View it on Heptapod: https://foss.heptapod.net/pypy/pypy/-/compare/8a37c3104d993fe1f6ebcb64b8d405b30be91cf4...32d0cb168268ec6f8d05f3ce02f38c583815e8c2
You're receiving this email because of your account on foss.heptapod.net.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-commit/attachments/20201003/028a84f3/attachment.html>


More information about the pypy-commit mailing list