diff options
author | Mark Dickinson <mdickinson@enthought.com> | 2011-10-11 17:07:19 (GMT) |
---|---|---|
committer | Mark Dickinson <mdickinson@enthought.com> | 2011-10-11 17:07:19 (GMT) |
commit | 1c027e564f9683584bfa4db8a0442a11e3ae13e1 (patch) | |
tree | 50d621bcb78b46057e1e46de787ff5c3e2b4fb1b /Doc | |
parent | dc567e42f7f3c22bce09275611dfc1a4a1f7ebde (diff) | |
parent | f1ab47ebc4d6f6cdb0ea7f9ec73d874aae03a1f2 (diff) | |
download | cpython-1c027e564f9683584bfa4db8a0442a11e3ae13e1.zip cpython-1c027e564f9683584bfa4db8a0442a11e3ae13e1.tar.gz cpython-1c027e564f9683584bfa4db8a0442a11e3ae13e1.tar.bz2 |
Merge issue #13145 fix.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/c-api/number.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/c-api/number.rst b/Doc/c-api/number.rst index 090fc64..21951c3 100644 --- a/Doc/c-api/number.rst +++ b/Doc/c-api/number.rst @@ -239,10 +239,10 @@ Number Protocol .. c:function:: PyObject* PyNumber_ToBase(PyObject *n, int base) - Returns the integer *n* converted to *base* as a string with a base - marker of ``'0b'``, ``'0o'``, or ``'0x'`` if applicable. When - *base* is not 2, 8, 10, or 16, the format is ``'x#num'`` where x is the - base. If *n* is not an int object, it is converted with + Returns the integer *n* converted to base *base* as a string. The *base* + argument must be one of 2, 8, 10, or 16. For base 2, 8, or 16, the + returned string is prefixed with a base marker of ``'0b'``, ``'0o'``, or + ``'0x'``, respectively. If *n* is not a Python int, it is converted with :c:func:`PyNumber_Index` first. |