[Python-checkins] r70827 - python/branches/py3k/Doc/c-api/long.rst
georg.brandl
python-checkins at python.org
Tue Mar 31 17:49:02 CEST 2009
Author: georg.brandl
Date: Tue Mar 31 17:49:02 2009
New Revision: 70827
Log:
#5566: remove duplicate entry.
Modified:
python/branches/py3k/Doc/c-api/long.rst
Modified: python/branches/py3k/Doc/c-api/long.rst
==============================================================================
--- python/branches/py3k/Doc/c-api/long.rst (original)
+++ python/branches/py3k/Doc/c-api/long.rst Tue Mar 31 17:49:02 2009
@@ -133,9 +133,9 @@
single: PY_SSIZE_T_MAX
single: OverflowError (built-in exception)
- Return a C :ctype:`Py_ssize_t` representation of the contents of *pylong*. If
- *pylong* is greater than :const:`PY_SSIZE_T_MAX`, an :exc:`OverflowError` is raised
- and ``-1`` will be returned.
+ Return a C :ctype:`Py_ssize_t` representation of the contents of *pylong*.
+ If *pylong* is greater than :const:`PY_SSIZE_T_MAX`, an :exc:`OverflowError`
+ is raised and ``-1`` will be returned.
.. cfunction:: unsigned long PyLong_AsUnsignedLong(PyObject *pylong)
@@ -149,16 +149,6 @@
raised.
-.. cfunction:: Py_ssize_t PyLong_AsSsize_t(PyObject *pylong)
-
- .. index::
- single: PY_SSIZE_T_MAX
-
- Return a :ctype:`Py_ssize_t` representation of the contents of *pylong*. If
- *pylong* is greater than :const:`PY_SSIZE_T_MAX`, an :exc:`OverflowError` is
- raised.
-
-
.. cfunction:: size_t PyLong_AsSize_t(PyObject *pylong)
Return a :ctype:`size_t` representation of the contents of *pylong*. If
More information about the Python-checkins
mailing list