Built-in Functions

The functions in this section are always available to the interpreter and are contained within the __builtin__ module. In addition, the __builtins__ attribute of each module usually refers to this module.

_ (underscore)

By default, the _ variable is set to the result of the last expression evaluated when the interpreter is running in interactive mode.

See Also

sys.displayhook (p. 166)

__import__(name [, globals [, locals [, fromlist]]])

This function is invoked by the import statement to load a module. name is a string containing the module name, globals is an optional dictionary defining the global namespace, locals is a dictionary defining the local namespace, and fromlist is a list of targets given to the from statement. ...

Get Python: Essential Reference, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.