Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5081f7e

Browse files
committed
#5566: remove duplicate entry.
1 parent d186307 commit 5081f7e

1 file changed

Lines changed: 3 additions & 13 deletions

File tree

Doc/c-api/long.rst

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ All integers are implemented as "long" integer objects of arbitrary size.
133133
single: PY_SSIZE_T_MAX
134134
single: OverflowError (built-in exception)
135135

136-
Return a C :ctype:`Py_ssize_t` representation of the contents of *pylong*. If
137-
*pylong* is greater than :const:`PY_SSIZE_T_MAX`, an :exc:`OverflowError` is raised
138-
and ``-1`` will be returned.
136+
Return a C :ctype:`Py_ssize_t` representation of the contents of *pylong*.
137+
If *pylong* is greater than :const:`PY_SSIZE_T_MAX`, an :exc:`OverflowError`
138+
is raised and ``-1`` will be returned.
139139

140140

141141
.. cfunction:: unsigned long PyLong_AsUnsignedLong(PyObject *pylong)
@@ -149,16 +149,6 @@ All integers are implemented as "long" integer objects of arbitrary size.
149149
raised.
150150

151151

152-
.. cfunction:: Py_ssize_t PyLong_AsSsize_t(PyObject *pylong)
153-
154-
.. index::
155-
single: PY_SSIZE_T_MAX
156-
157-
Return a :ctype:`Py_ssize_t` representation of the contents of *pylong*. If
158-
*pylong* is greater than :const:`PY_SSIZE_T_MAX`, an :exc:`OverflowError` is
159-
raised.
160-
161-
162152
.. cfunction:: size_t PyLong_AsSize_t(PyObject *pylong)
163153

164154
Return a :ctype:`size_t` representation of the contents of *pylong*. If

0 commit comments

Comments
 (0)