diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-01-17 09:45:37 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-01-17 09:45:37 (GMT) |
commit | 0bbcc4cf9853fe4864a481e303a9f8d22cf2dc36 (patch) | |
tree | f60472be9efc39ee2fc8fa3c3720b01a90145f04 /Doc/c-api | |
parent | 9953a8dfd6b078b58a7c73991660537677d11b56 (diff) | |
download | cpython-0bbcc4cf9853fe4864a481e303a9f8d22cf2dc36.zip cpython-0bbcc4cf9853fe4864a481e303a9f8d22cf2dc36.tar.gz cpython-0bbcc4cf9853fe4864a481e303a9f8d22cf2dc36.tar.bz2 |
Remove a couple of references to long in the c-api docs
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/number.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/number.rst b/Doc/c-api/number.rst index d11e3b1..e7c5f61 100644 --- a/Doc/c-api/number.rst +++ b/Doc/c-api/number.rst @@ -252,7 +252,7 @@ Number Protocol .. cfunction:: PyObject* PyNumber_Index(PyObject *o) - Returns the *o* converted to a Python int or long on success or *NULL* with a + Returns the *o* converted to a Python int on success or *NULL* with a :exc:`TypeError` exception raised on failure. @@ -268,7 +268,7 @@ Number Protocol .. cfunction:: Py_ssize_t PyNumber_AsSsize_t(PyObject *o, PyObject *exc) Returns *o* converted to a Py_ssize_t value if *o* can be interpreted as an - integer. If *o* can be converted to a Python int or long but the attempt to + integer. If *o* can be converted to a Python int but the attempt to convert to a Py_ssize_t value would raise an :exc:`OverflowError`, then the *exc* argument is the type of exception that will be raised (usually :exc:`IndexError` or :exc:`OverflowError`). If *exc* is *NULL*, then the |