PyNumber_ToBase

Returns the integer n converted to a string with a base, with a base marker of 0b, 0o or 0x prefixed if applicable. If n is not an int object, it is converted with PyNumber_Index first.

Availability: >= 2.6

version(Python_2_6_Or_Later)
PyNumber_ToBase
()

Meta