Search code examples
pythonfunctionbuilt-in

Retrieve all builtin functions


I intent to retrieve a list of default Built-in Functions specified in 2. Built-in Functions

How to list them all?

Just as list all the keywords as:

python
import keyword
keyword.kwlist

is it possible to list all the 68 functions?


This is my first question on SO, please note that it definitely not duplicate to the existing stuff on stackoverflow or even the world.

My question asked about the 68 builtin functions listed by docs which are absolutely different from dir(__builtins__): enter image description here


Solution

  • This will show all builtins:

    >>> dir(__builtins__)
    ['ArithmeticError', 'AssertionError', ...,  'type', 'vars', 'zip']