Built-in functions — Python 3.15.2 documentation
Return the string representing a character with the specified Unicode code point. For example, chr(97) returns the string 'a' , while chr(8364) ...
Return the string representing a character with the specified Unicode code point. For example, chr(97) returns the string 'a' , while chr(8364) ...
Python HOWTOs In-depth topic manuals. Installing Python modules Third-party modules and PyPI.org. Extending and embedding For C/C++ programmers.
Source code: Lib/random.py This module implements pseudo-random number generators for various distributions. For integers, there is uniform selection from a ...
The array must have type code 'u' or 'w'; otherwise a ValueError is raised. Use array.frombytes(unicodestring.encode(enc)) to append Unicode data to an array of some other type. index(value[, start[, stop]])¶.The NumPy package defines another array type.
both raise SyntaxError ). For code that cannot use the lazy keyword directly (for example, when supporting Python versions older than 3.15 while still using ...
Source code: Lib/multiprocessing/shared_memory.py.The following example demonstrates a practical use of the SharedMemory class with NumPy arrays, accessing the same numpy.ndarray from two distinct Python shells
gh-158195: Fix a deadlock in the free-threaded build between a thread that stops the world while running Python code under the type lock (for example a custom ...
| bisect — Array bisection algorithm¶. Source code: Lib/bisect.py. This module provides support for maintaining a list in sorted order without having to sort the list after each insertion.
connect_accepted_socket versionadded marker. bpo-31537: Fix incorrect usage of get_history_length in readline documentation example code. Patch by Brad Smith.
To clarify the above rules, here’s some example Python code, equivalent to the built-in hash, for computing the hash of a rational number, float, or complexAs the body of a function instead of a pass statement. In third-party libraries, such as Numpy’s slicing and striding.
bpo-39883: Make code, examples, and recipes in the Python documentation be ... array when removing unreachable code. This bug was present in every ...
Patch by Victor Stinner. gh-97612: Fix a shell code injection vulnerability in the get-remote-certificate.py example script. The ...