diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2010-01-30 13:32:14 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2010-01-30 13:32:14 (GMT) |
commit | ea30c6f5ee59f1271498e6c6f0a60eebfc553b32 (patch) | |
tree | c347d6b706f599febd9c209e5a8f051592330952 /Doc/c-api/long.rst | |
parent | 16a060d1a2ddd888b2549691ebd066d06f0dcb82 (diff) | |
download | cpython-ea30c6f5ee59f1271498e6c6f0a60eebfc553b32.zip cpython-ea30c6f5ee59f1271498e6c6f0a60eebfc553b32.tar.gz cpython-ea30c6f5ee59f1271498e6c6f0a60eebfc553b32.tar.bz2 |
Merged revisions 77850-77851 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r77850 | ezio.melotti | 2010-01-30 15:08:54 +0200 (Sat, 30 Jan 2010) | 1 line
Relocate a couple of stars and remove redundant backticks
........
r77851 | ezio.melotti | 2010-01-30 15:27:05 +0200 (Sat, 30 Jan 2010) | 1 line
Use the correct markup for args
........
Diffstat (limited to 'Doc/c-api/long.rst')
-rw-r--r-- | Doc/c-api/long.rst | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Doc/c-api/long.rst b/Doc/c-api/long.rst index ba9949f..a48a702 100644 --- a/Doc/c-api/long.rst +++ b/Doc/c-api/long.rst @@ -84,7 +84,7 @@ All integers are implemented as "long" integer objects of arbitrary size. Return a new :ctype:`PyLongObject` based on the string value in *str*, which is interpreted according to the radix in *base*. If *pend* is non-*NULL*, - ``*pend`` will point to the first character in *str* which follows the + *\*pend* will point to the first character in *str* which follows the representation of the number. If *base* is ``0``, the radix will be determined based on the leading characters of *str*: if *str* starts with ``'0x'`` or ``'0X'``, radix 16 will be used; if *str* starts with ``'0o'`` or @@ -119,25 +119,25 @@ All integers are implemented as "long" integer objects of arbitrary size. and return -1. Convert non-long objects automatically to long first, and return -1 if that raises exceptions. -.. cfunction:: long PyLong_AsLongAndOverflow(PyObject *pylong, int* overflow) +.. cfunction:: long PyLong_AsLongAndOverflow(PyObject *pylong, int *overflow) Return a C :ctype:`long` representation of the contents of *pylong*. If *pylong* is greater than :const:`LONG_MAX` or less - than :const:`LONG_MIN`, set `*overflow` to ``1`` or ``-1``, - respectively, and return ``-1``; otherwise, set `*overflow` to + than :const:`LONG_MIN`, set *\*overflow* to ``1`` or ``-1``, + respectively, and return ``-1``; otherwise, set *\*overflow* to ``0``. If any other exception occurs (for example a TypeError or - MemoryError), then ``-1`` will be returned and ``*overflow`` will + MemoryError), then ``-1`` will be returned and *\*overflow* will be ``0``. -.. cfunction:: PY_LONG_LONG PyLong_AsLongLongAndOverflow(PyObject *pylong, int* overflow) +.. cfunction:: PY_LONG_LONG PyLong_AsLongLongAndOverflow(PyObject *pylong, int *overflow) Return a C :ctype:`long long` representation of the contents of *pylong*. If *pylong* is greater than :const:`PY_LLONG_MAX` or less - than :const:`PY_LLONG_MIN`, set `*overflow` to ``1`` or ``-1``, - respectively, and return ``-1``; otherwise, set `*overflow` to + than :const:`PY_LLONG_MIN`, set *\*overflow* to ``1`` or ``-1``, + respectively, and return ``-1``; otherwise, set *\*overflow* to ``0``. If any other exception occurs (for example a TypeError or - MemoryError), then ``-1`` will be returned and ``*overflow`` will + MemoryError), then ``-1`` will be returned and *\*overflow* will be ``0``. .. versionadded:: 3.2 |