Programming FAQ — Python 3.15.2 documentation
In Python, variables that are only referenced inside a function are implicitly global. If a variable is assigned a value anywhere within the function's body, ...
In Python, variables that are only referenced inside a function are implicitly global. If a variable is assigned a value anywhere within the function's body, ...
The library changes include a new profiling package with Tachyon, a high-frequency statistical sampling profiler, more color in command-line output, as well as ...
Soft-deprecate the ARRAY() function in favour of type * length multiplication.Deprecate platform.java_ver(), to be removed in Python 3.15. This function is only useful for Jython support, has a confusing API, and is largely untested. (Contributed by Nikita Sobolev in gh-116349.)
2 days ago · Built-in functions ¶ The Python interpreter has a number of functions and types built into it that are always available. They are listed here in alphabetical order.
Byte Array Objects. Type check macros. Direct API functions.Similar to PyByteArray_AsString(), but without error checking. Note. It is not thread-safe to mutate the bytearray object while using the returned char array.
1 day 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 ...
PEP 768: Safe external debugger interface for CPython. A new type of interpreter. Free-threaded mode improvements. Improved error messages.
Since Python’s floats are stored internally as binary numbers, converting a float to or from a decimal string usually involves a small rounding error. In contrast, hexadecimal strings allow exact representation and specification of floating-point numbers.
1 day ago · Most exceptions are defined with names that end in “Error”, similar to the naming of the standard exceptions. Many standard modules define their own exceptions to report errors that may occur in functions they define.
The accompanying value is a pair (h_errno, string) representing an error returned by a library call. h_errno is a numeric value, while string represents the ...
| Download Python 3.15 documentation. Last updated on: Dec 05, 2026 (11:03 UTC). Download an archive containing all the documentation for this version of Python
What’s New in Python- What’s new in Python 3.15- Summary – Release highlights, New features- PEP 810: Explicit lazy imports, PEP 814: Add frozendict built-in type, PEP 661: Add sentinel built-in ty...
When your Python application uses a class in Tkinter, for example, to create a widget, the tkinter module first assembles a Tcl/Tk command string. It passes ...
2 days ago · Elsewhere, The Python Language Reference describes the exact syntax and semantics of the Python language, and Python built-ins 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 contents listed below.
ElementTree ), the SQLite database module ( sqlite3 ), and the ctypes module for calling C functions. The language changes are of middling significance. Some ...
PEP written by Martin von Löwis. PEP 389: Argparse Command Line Parsing Module¶. A new module for command line parsing, argparse ...