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 ...
2 days ago · What's new in Python 3.15? Or all "What's new" documents since Python 2.0 Tutorial Start here: a tour of Python's syntax and features 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 Python HOWTOs In-depth topic manuals Installing Python ...
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 ...
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 · 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...
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.
The following example demonstrates a practical use of the SharedMemory class with NumPy arrays, accessing the same numpy.ndarray from two distinct Python shells
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 ...
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 ().