diff options
author | Stefano Rivera <stefano@rivera.za.net> | 2020-10-02 21:39:21 -0700 |
---|---|---|
committer | Stefano Rivera <stefano@rivera.za.net> | 2020-10-02 21:39:21 -0700 |
commit | 3b1a094bc0da8c206e45a60e6c275d06a7a23df7 (patch) | |
tree | 2f2e523a037db277613fe12ff7c02830760c35f0 /lib_pypy/readline.py | |
parent | Handle NULL argument to PyLong_AsUnsignedLongLongMask (diff) | |
download | pypy-3b1a094bc0da8c206e45a60e6c275d06a7a23df7.tar.gz pypy-3b1a094bc0da8c206e45a60e6c275d06a7a23df7.tar.bz2 pypy-3b1a094bc0da8c206e45a60e6c275d06a7a23df7.zip |
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.
Diffstat (limited to 'lib_pypy/readline.py')
0 files changed, 0 insertions, 0 deletions