« Back to Index

[Python Internals]

View original Gist on GitHub

Tags: #python #internals

Python Internals.py

import builtins

dir(builtins)  # lists all objects that are globally available (e.g. builtins.object is available as 'object', no need to import `builtins` explicitly)

help(object)  # help(builtins.object) is the same output...

"""
Help on class object in module builtins:

class object
 |  The most base type
"""

help(str)  # prints signature, return types, descriptions and all methods.