diff -r 9a91ab415109 Doc/c-api/number.rst --- a/Doc/c-api/number.rst Thu Oct 06 15:58:54 2011 +0200 +++ b/Doc/c-api/number.rst Mon Oct 10 14:03:08 2011 +0100 @@ -239,11 +239,10 @@ .. 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 - :c:func:`PyNumber_Index` first. + Returns the integer *n* converted to *base* as a string, where *base* + must be one of 2, 8, 10, or 16. The return value is prefixed by a base + marker of ``'0b'``, ``'0o'``, or ``'0x'`` if applicable. If *n* is + not a long object, it is converted with :c:func:`PyNumber_Index` first. .. c:function:: Py_ssize_t PyNumber_AsSsize_t(PyObject *o, PyObject *exc)