Built-in functions — Python 3.15.2 documentation
Code objects can be executed by exec() or eval() . source can either be a normal string, a byte string, or an AST object. Refer to the ast module documentation ...
Code objects can be executed by exec() or eval() . source can either be a normal string, a byte string, or an AST object. Refer to the ast module documentation ...
Oct 9, 2026 ... Traceback (most recent call last): File "example.py", line 18, in ... append(4) Traceback (most recent call last): ... AttributeError ...
1 day ago · This module defines an object type which can compactly represent an array of basic values: characters, integers, floating-point numbers, complex numbers. Arrays are mutable sequence types and behav...
Sep 3, 2025 ... This function supports dynamic execution of Python code. object must be either a string or a code object. If it is a string, the string is ...
Array objects support the ordinary sequence operations of indexing, slicing, concatenation, and multiplication. When using slice assignment, the assigned value must be an array object with the same type code; in all other cases, :exc:`TypeError` is raised.
1 day ago · It helps to have a Python interpreter handy for hands-on experience, but all examples are self-contained, so the tutorial can be read off-line as well. For a description of standard objects and modules, see Python built-ins reference and The Python standard library. The Python Language Reference gives a more formal definition of the language.
Obsolete alias for array. Array objects support the ordinary sequence operations of indexing, slicing, concatenation, and multiplication. When using slice assignment, the assigned value must be an array object with the same type code; in all other cases, TypeError is raised.
1 day ago · For an informal introduction to the language, see The Python Tutorial. For C or C++ programmers, two additional manuals exist: Extending and Embedding the Python Interpreter describes the high-level picture of how to write a Python extension module, and the Python/C API reference manual describes the interfaces available to C/C++ programmers in ...
Traceback (most recent call last): File "example.py", line 18, in <module> ... append(4) Traceback (most recent call last): ... AttributeError: 'tuple ...
This example, as usual, demonstrates some new Python features: The return statement returns with a value from a function. return without an expression argument returns None. Falling off the end of a function also returns None. The statement result.append(a) calls a method of the list...
Source code: Lib/zipfile/ The ZIP file format is a common archive and compression standard. This module provides tools to create, read, write, append, and list a ZIP file. Any advanced use of this ...
Traceback (most recent call last): File "example.py", line 18, in <module> ... append(4) Traceback (most recent call last): ... AttributeError: 'tuple ...
1 day ago · The recipes also give ideas about ways that the tools can be combined — for example, how starmap () and repeat () can work together. The recipes also show patterns for using itertools with the operator and collections modules as well as with the built-in itertools such as map (), filter (), reversed (), and enumerate ().