New submission from Sven Marnach <s...@marnach.net>: The documentation of PyNumber_ToBase() [1] states
When base is not 2, 8, 10, or 16, the format is 'x#num' where x is the base. In reality, the function does not accept any bases different from 2, 8, 10, or 16, as can be seen in the source code of _PyLong_Form() [2], which is called from PyNumber_ToBase() to do the actual conversion. The patch fixes the documentation. [1]: http://docs.python.org/c-api/number.html#PyNumber_ToBase [2]: http://hg.python.org/cpython/file/f924e0f62bcb/Objects/longobject.c#l1663 ---------- assignee: docs@python components: Documentation files: pynumber-tobase-doc.patch keywords: patch messages: 145297 nosy: docs@python, smarnach priority: normal severity: normal status: open title: Documentation of PyNumber_ToBase() wrong Added file: http://bugs.python.org/file23367/pynumber-tobase-doc.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13145> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com