Built-in functions — Python 3.15.2 documentation
The arguments are an object and a string. The string must be the name of one of the object's attributes. The function deletes the named attribute, provided the ...
The arguments are an object and a string. The string must be the name of one of the object's attributes. The function deletes the named attribute, provided the ...
A function definition associates the function name with the function object in the current symbol table.Like nested function definitions, lambda functions can reference variables from the containing scope
... reference describes the built-in functions. Python's standard library is extensive, offering a wide range of facilities as indicated by the long table of ...
Built-ins reference Built-in functions and classes. Library reference Standard library modules. Language reference Syntax and language elements. Python setup and usage How to install, configure, and use Python.
Some operations are supported by several object types; in particular, practically all objects can be compared for equality, tested for truth value, and ...
Source code: Lib/argparse.py Tutorial: This page contains the API reference information. For a more gentle introduction to Python command-line parsing, have a look at the argparse tutorial.Table of Contents. argparse — Parser for command-line options, arguments and subcommands.
Retrieve a given field value. The key argument will be either an integer or a string. If it is an integer, it represents the index of the positional argument in ...
python -c code and python (REPL) command lines: prepend an empty string, which means the current working directory. To not prepend this potentially unsafe path, use the -P command line option or the PYTHONSAFEPATH environment variable.
If you have a really long format string that you don't want to split up, it would be nice if you could reference the variables to be formatted by name instead ...
| dataclasses — Data Classes¶. Source code: Lib/dataclasses.py. This module provides a decorator and functions for automatically adding generated special methods such as __init__() and __repr__() to user-defined classes.
A module object has a namespace implemented by a dictionary object (this is the dictionary referenced by the __globals__ attribute of functions defined in the ...