__builtin__.oct()

__builtin__.oct(number) → string

Return the octal representation of an integer or long integer.