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 ...
Open file and return a corresponding file object. If the file cannot be opened, an OSError is raised. See Reading and Writing Files for more examples of how to use this function.
Running this code now produces a clearer suggestion: Traceback (most recent call last): File "example.py", line 18, in <module> print(container.area) ...
For example, the length of word[1:3] is 2. Attempting to use an index that is too large will result in an error: >>> word[42] # the word only has 6 characters Traceback (most recent call last): File "<stdin>", line 1, in <module> IndexError: string index out of range.
SharedMemory leaking its file descriptor and printing an ignored BufferError when garbage collected while its buf was still in use, for example by a NumPy array ...
Generate byte-code files from Python source files. pyclbr. Supports information extraction for a Python module browser.Tool for detecting white space related problems in Python source files in a directory tree. tarfile. Read and write tar-format archive files.
The make_ssl_data.py script has been rewritten to use OpenSSL's text file with error codes. ... bpo-39883: Make code, examples, and recipes in the Python ...
AttributeError: module 'numpy' has no attribute 'array' (consider renaming '/home/me/numpy.py' if it has the same name as a library you intended to import). (Contributed by Shantanu Jain in gh-95754.)
compare_digest , making constant-time-defeating optimizations less likely. Core and Builtins¶. bpo-35560: Fix an assertion error in format() in debug ...
The standard Python distribution includes a lot of additional code. There are modules to read Unix mailboxes, retrieve documents via HTTP, generate random numbers, parse command-line options, compress data, and many other tasks.
The make_ssl_data.py script has been rewritten to use OpenSSL's text file with error codes. ... bpo-39883: Make code, examples, and recipes in the Python ...
... example by a NumPy array. buf now also stays usable after the SharedMemory object is garbage collected. gh-155031: Propagate to user any permission errors ...