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 ...
For code that cannot use the lazy keyword directly (for example, when supporting Python versions older than 3.15 while still using lazy imports on 3.15+), a module can define __lazy_modules__ as a container of fully qualified module name strings.
Objects, values and types: Objects are Python's abstraction for data. All data in a Python program is represented by objects or by relations between objects ...
Source code: Lib/ctypes ctypes is a foreign function library for Python. It provides C compatible data types, and allows calling functions in DLLs or shared libraries.
Why am I getting an UnboundLocalError when the variable has a value? What are the rules for local and global variables in Python? Why do lambdas defined in a ...
Dictionaries are sometimes found in other languages as “associative memories” or “associative arrays”. Unlike sequences, which are indexed by a range of numbers, dictionaries are indexed by keys, which can be any immutable type; strings and numbers can always be keys.
Source code: Lib/os.py This module provides a portable way of using operating system dependent functionality. If you just want to read or write a file see ...
Source code: Lib/argparse.py Tutorial: This page contains the API reference information. For a more gentle introduction to Python command-line parsing, have a look at the argparse tutorial.
If you're comparing the same value to several constants, or checking for specific types or attributes, you may also find the match statement useful. For more ...
This is the official documentation for Python 3.15.2.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.
Why does Python use indentation for grouping of statements?, Why am I getting strange results with simple arithmetic operations?, Why are floating-point ...
We will see more about numeric types later in the tutorial. Division ( / ) always returns a float. To do floor division and get an integer result you can use ...