GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • What’s New in Python
  • Report a bug
  • Improve this page
  • Show source
  • index
  • modules
  • Python
  • 3.16.0a2 documentation
  • Python Documentation contents

This view

  • Original page
  • New address

GeezerVison is showing docs.python.org (truncated) — Python Documentation contents

Python Documentation contents¶

  • What’s New in Python
    • What’s new in Python 3.16
      • Summary – Release highlights
      • New features
        • Improved error messages
      • Other language changes
      • Default interactive shell
      • New modules
      • Improved modules
        • argparse
        • asyncio
        • bdb
        • bz2
        • codecs
        • compression.zstd
        • concurrent.futures
        • concurrent.interpreters
        • copy
        • csv
        • ctypes
        • curses
        • datetime
        • dbm.gnu
        • dbm.ndbm
        • decimal
        • difflib
        • encodings
        • gzip
        • http.client
        • imaplib
        • io
        • ipaddress
        • logging
        • lzma
        • math
        • multiprocessing
        • os
        • pydoc
        • pickle
        • quopri
        • re
        • readline
        • shlex
        • shutil
        • socket
        • sqlite3
        • ssl
        • symtable
        • tkinter
        • turtle
        • unicodedata
        • urllib.request
        • uuid
        • xml
        • zipfile
        • zlib
      • Optimizations
        • ast
        • datetime and time
        • re
        • uuid
      • Removed
        • annotationlib
        • array
        • asyncio
        • functools
        • logging
        • mimetypes
        • shutil
        • symtable
        • sys
        • sysconfig
        • tarfile
        • xml.etree.ElementTree
      • Deprecated
        • New deprecations
        • Pending removal in Python 3.17
        • Pending removal in Python 3.18
        • Pending removal in Python 3.19
        • Pending removal in Python 3.20
        • Pending removal in Python 3.21
        • Pending removal in future versions
      • Porting to Python 3.16
      • Build changes
        • Build support for tvOS, watchOS, and visionOS
      • C API changes
        • New features
        • Porting to Python 3.16
        • Deprecated C APIs
          • Pending removal in Python 3.18
          • Pending removal in Python 3.19
          • Pending removal in Python 3.20
          • Pending removal in future versions
        • Removed C APIs
    • 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 type
        • PEP 799: A dedicated profiling package
        • Tachyon: High-frequency statistical sampling profiler
        • PEP 831: Frame pointers enabled by default
        • PEP 798: Unpacking in comprehensions
        • PEP 829: Package startup configuration files
        • PEP 803: Stable ABI for free-threaded builds
        • PEP 788: Protecting the C API from interpreter finalization
        • Improved error messages
      • Other language changes
      • Default interactive shell
      • New modules
        • math.integer
      • Improved modules
        • argparse
        • array
        • ast
        • asyncio
        • base64
        • binascii
        • calendar
        • collections
        • concurrent.futures
        • contextlib
        • ctypes
        • dataclasses
        • dbm
        • difflib
        • email
        • faulthandler
        • functools
        • gc
        • hashlib
        • http.client
        • http.server
        • importlib.metadata
        • inspect
        • json
        • locale
        • math
        • mimetypes
        • mmap
        • os
        • os.path
        • pathlib
        • pdb
        • pickle
        • pickletools
        • pprint
        • re
        • resource
        • shelve
        • shutil
        • socket
        • sqlite3
        • ssl
        • subprocess
        • symtable
        • sys
        • sys.monitoring
        • tarfile
        • threading
        • timeit
        • tkinter
        • tokenize
        • tomllib
        • types
        • typing
        • unicodedata
        • unittest
        • urllib.parse
        • venv
        • warnings
        • wave
        • webbrowser
        • xml
        • xml.parsers.expat
        • zlib
      • Optimizations
        • base64 & binascii
        • csv
        • Upgraded experimental JIT compiler
      • Removed
        • ast
        • collections.abc
        • ctypes
        • datetime
        • glob
        • http.server
        • importlib
        • importlib.resources
        • pathlib
        • platform
        • sre_*
        • sysconfig
        • threading
        • types
        • typing
        • wave
        • zipimport
      • Deprecated
        • New deprecations
        • Pending removal in Python 3.16
        • Pending removal in Python 3.17
        • Pending removal in Python 3.18
        • Pending removal in Python 3.19
        • Pending removal in Python 3.20
        • Pending removal in Python 3.21
        • Pending removal in future versions
        • Soft deprecations
      • C API changes
        • New features
        • Changed C APIs
        • Removed C APIs
        • Deprecated C APIs
      • Build changes
      • Porting to Python 3.15
    • What’s new in Python 3.14
      • Summary – Release highlights
      • New features
        • PEP 649 & PEP 749: Deferred evaluation of annotations
        • PEP 734: Multiple interpreters in the standard library
        • PEP 750: Template string literals
        • PEP 768: Safe external debugger interface
        • A new type of interpreter
        • Free-threaded mode improvements
        • Improved error messages
        • PEP 784: Zstandard support in the standard library
        • Asyncio introspection capabilities
        • Concurrent safe warnings control
      • Other language changes
        • Built-ins
        • Command line and environment
        • PEP 758: Allow except and except* expressions without brackets
        • PEP 765: Control flow in finally blocks
        • Garbage collection
        • Default interactive shell
      • New modules
      • Improved modules
        • argparse
        • ast
        • asyncio
        • calendar
        • concurrent.futures
        • configparser
        • contextvars
        • ctypes
        • curses
        • datetime
        • decimal
        • difflib
        • dis
        • errno
        • faulthandler
        • fnmatch
        • fractions
        • functools
        • getopt
        • getpass
        • graphlib
        • heapq
        • hmac
        • http
        • imaplib
        • inspect
        • io
        • json
        • linecache
        • logging.handlers
        • math
        • mimetypes
        • multiprocessing
        • operator
        • os
        • os.path
        • pathlib
        • pdb
        • pickle
        • platform
        • pydoc
        • re
        • socket
        • ssl
        • struct
        • symtable
        • sys
        • sys.monitoring
        • sysconfig
        • tarfile
        • threading
        • tkinter
        • turtle
        • types
        • typing
        • unicodedata
        • unittest
        • urllib
        • uuid
        • webbrowser
        • zipfile
      • Optimizations
        • asyncio
        • base64
        • bdb
        • difflib
        • gc
        • io
        • pathlib
        • pdb
        • textwrap
        • uuid
        • zlib
      • Removed
        • argparse
        • ast
        • asyncio
        • email
        • importlib.abc
        • itertools
        • pathlib
        • pkgutil
        • pty
        • sqlite3
        • urllib
      • Deprecated
        • New deprecations
        • Pending removal in Python 3.15
        • Pending removal in Python 3.16
        • Pending removal in Python 3.17
        • Pending removal in Python 3.18
        • Pending removal in Python 3.19
        • Pending removal in Python 3.20
        • Pending removal in Python 3.21
        • Pending removal in future versions
      • CPython bytecode changes
        • Pseudo-instructions
      • C API changes
        • Python configuration C API
        • New features in the C API
        • Limited C API changes
        • Removed C APIs
        • Deprecated C APIs
          • Pending removal in Python 3.15
          • Pending removal in Python 3.16
          • Pending removal in Python 3.18
          • Pending removal in future versions
      • Build changes
        • build-details.json
        • Discontinuation of PGP signatures
        • Free-threaded Python is officially supported
        • Binary releases for the experimental just-in-time compiler
      • Porting to Python 3.14
        • Changes in the Python API
        • Changes in annotations (PEP 649 and PEP 749)
          • Implications for annotated code
          • Implications for readers of __annotations__
          • Related changes
          • from __future__ import annotations
        • Changes in the C API
      • Notable changes in 3.14.5
        • gc
    • What’s New In Python 3.13
      • Summary – Release Highlights
      • New Features
        • A better interactive interpreter
        • Improved error messages
        • Free-threaded CPython
        • An experimental just-in-time (JIT) compiler
        • Defined mutation semantics for locals()
        • Support for mobile platforms
      • Other Language Changes
      • New Modules
      • Improved Modules
        • argparse
        • array
        • ast
        • asyncio
        • base64
        • compileall
        • concurrent.futures
        • configparser
        • copy
        • ctypes
        • dbm
        • dis
        • doctest
        • email
        • enum
        • fractions
        • glob
        • importlib
        • io
        • ipaddress
        • itertools
        • marshal
        • math
        • mimetypes
        • mmap
        • multiprocessing
        • os
        • os.path
        • pathlib
        • pdb
        • queue
        • random
        • re
        • shutil
        • site
        • sqlite3
        • ssl
        • statistics
        • subprocess
        • sys
        • tempfile
        • time
        • tkinter
        • traceback
        • types
        • typing
        • unicodedata
        • venv
        • warnings
        • xml
        • zipimport
      • Optimizations
      • Removed Modules And APIs
        • PEP 594: Remove “dead batteries” from the standard library
        • 2to3
        • builtins
        • configparser
        • importlib.metadata
        • locale
        • opcode
        • optparse
        • pathlib
        • re
        • tkinter.tix
        • turtle
        • typing
        • unittest
        • urllib
        • webbrowser
      • New Deprecations
        • Pending removal in Python 3.14
        • Pending removal in Python 3.15
        • Pending removal in Python 3.16
        • Pending removal in Python 3.17
        • Pending removal in Python 3.18
        • Pending removal in Python 3.19
        • Pending removal in Python 3.20
        • Pending removal in Python 3.21
        • Pending removal in future versions
      • CPython Bytecode Changes
      • C API Changes
        • New Features
        • Changed C APIs
        • Limited C API Changes
        • Removed C APIs
        • Deprecated C APIs
          • Pending removal in Python 3.14
          • Pending removal in Python 3.15
          • Pending removal in Python 3.16
          • Pending removal in Python 3.18
          • Pending removal in future versions
      • Build Changes
      • Porting to Python 3.13
        • Changes in the Python API
        • Changes in the C API
      • Regression Test Changes
    • What’s New In Python 3.12
      • Summary – Release highlights
      • New Features
        • PEP 695: Type Parameter Syntax
        • PEP 701: Syntactic formalization of f-strings
        • PEP 684: A Per-Interpreter GIL
        • PEP 669: Low impact monitoring for CPython
        • PEP 688: Making the buffer protocol accessible in Python
        • PEP 709: Comprehension inlining
        • Improved Error Messages
      • New Features Related to Type Hints
        • PEP 692: Using TypedDict for more precise **kwargs typing
        • PEP 698: Override Decorator for Static Typing
      • Other Language Changes
      • New Modules
      • Improved Modules
        • array
        • asyncio
        • calendar
        • csv
        • dis
        • fractions
        • importlib.resources
        • inspect
        • itertools
        • math
        • os
        • os.path
        • pathlib
        • platform
        • pdb
        • random
        • shutil
        • sqlite3
        • statistics
        • sys
        • tempfile
        • threading
        • tkinter
        • tokenize
        • types
        • typing
        • unicodedata
        • unittest
        • uuid
      • Optimizations
      • CPython bytecode changes
      • Demos and Tools
      • Deprecated
        • Pending removal in Python 3.13
        • Pending removal in Python 3.14
        • Pending removal in Python 3.15
        • Pending removal in Python 3.16
        • Pending removal in Python 3.17
        • Pending removal in Python 3.19
        • Pending removal in Python 3.20
        • Pending removal in Python 3.21
        • Pending removal in future versions
      • Removed
        • asynchat and asyncore
        • configparser
        • distutils
        • ensurepip
        • enum
        • ftplib
        • gzip
        • hashlib
        • importlib
        • imp
        • io
        • locale
        • smtpd
        • sqlite3
        • ssl
        • unittest
        • webbrowser
        • xml.etree.ElementTree
        • zipimport
        • Others
      • Porting to Python 3.12
        • Changes in the Python API
      • Build Changes
      • C API Changes
        • New Features
        • Porting to Python 3.12
        • Deprecated
          • Pending removal in Python 3.14
          • Pending removal in Python 3.15
          • Pending removal in Python 3.16
          • Pending removal in future versions
        • Removed
    • What’s New In Python 3.11
      • Summary – Release highlights
      • New Features
        • PEP 657: Fine-grained error locations in tracebacks
        • PEP 654: Exception Groups and except*
        • PEP 678: Exceptions can be enriched with notes
        • Windows py.exe launcher improvements
      • New Features Related to Type Hints
        • PEP 646: Variadic generics
        • PEP 655: Marking individual TypedDict items as required or not-required
        • PEP 673: Self type
        • PEP 675: Arbitrary literal string type
        • PEP 681: Data class transforms
        • PEP 563 may not be the future
      • Other Language Changes
      • Other CPython Implementation Changes
      • New Modules
      • Improved Modules
        • asyncio
        • contextlib
        • dataclasses
        • datetime
        • enum
        • fcntl
        • fractions
        • functools
        • gzip
        • hashlib
        • IDLE and idlelib
        • inspect
        • locale
        • logging
        • math
        • operator
        • os
        • pathlib
        • re
        • shutil
        • socket
        • sqlite3
        • string
        • sys
        • sysconfig
        • tempfile
        • threading
        • time
        • tkinter
        • traceback
        • typing
        • unicodedata
        • unittest
        • venv
        • warnings
        • zipfile
      • Optimizations
      • Faster CPython
        • Faster Startup
          • Frozen imports / Static code objects
        • Faster Runtime
          • Cheaper, lazy Python frames
          • Inlined Python function calls
          • PEP 659: Specializing Adaptive Interpreter
        • Misc
        • FAQ
          • How should I write my code to utilize these speedups?
          • Will CPython 3.11 use more memory?
          • I don’t see any speedups in my workload. Why?
          • Is there a JIT compiler?
        • About
      • CPython bytecode changes
        • New opcodes
        • Replaced opcodes
        • Changed/removed opcodes
      • Deprecated
        • Language/Builtins
        • Modules
        • Standard Library
      • Pending Removal in Python 3.12
      • Removed
      • Porting to Python 3.11
      • Build Changes
      • C API Changes
        • New Features
        • Porting to Python 3.11
        • Deprecated
        • Pending Removal in Python 3.12
        • Removed
      • Notable changes in 3.11.4
        • tarfile
      • Notable changes in 3.11.5
        • OpenSSL
    • What’s New In Python 3.10
      • Summary – Release highlights
      • New Features
        • Parenthesized context managers
        • Better error messages
          • SyntaxErrors
          • IndentationErrors
          • AttributeErrors
          • NameErrors
        • PEP 626: Precise line numbers for debugging and other tools
        • PEP 634: Structural Pattern Matching
          • Syntax and operations
          • Declarative approach
          • Simple pattern: match to a literal
            • Behavior without the wildcard
          • Patterns with a literal and variable
          • Patterns and classes
            • Patterns with positional parameters
          • Nested patterns
          • Complex patterns and the wildcard
          • Guard
          • Other Key Features
        • Optional EncodingWarning and encoding="locale" option
      • New Features Related to Type Hints
        • PEP 604: New Type Union Operator
        • PEP 612: Parameter Specification Variables
        • PEP 613: TypeAlias
        • PEP 647: User-Defined Type Guards
      • Other Language Changes
      • New Modules
      • Improved Modules
        • asyncio
        • argparse
        • array
        • asynchat, asyncore, smtpd
        • base64
        • bdb
        • bisect
        • codecs
        • collections.abc
        • contextlib
        • curses
        • dataclasses
          • __slots__
          • Keyword-only fields
        • distutils
        • doctest
        • encodings
        • enum
        • fileinput
        • faulthandler
        • gc
        • glob
        • hashlib
        • hmac
        • IDLE and idlelib
        • importlib.metadata
        • inspect
        • itertools
        • linecache
        • os
        • os.path
        • pathlib
        • platform
        • pprint
        • py_compile
        • pyclbr
        • shelve
        • statistics
        • site
        • socket
        • ssl
        • sqlite3
        • sys
        • _thread
        • threading
        • traceback
        • types
        • typing
        • unittest
        • urllib.parse
        • xml
        • zipimport
      • Optimizations
      • Deprecated
      • Removed
      • Porting to Python 3.10
        • Changes in the Python syntax
        • Changes in the Python API
        • Changes in the C API
      • CPython bytecode changes
      • Build Changes
      • C API Changes
        • PEP 652: Maintaining the Stable ABI
        • New Features
        • Porting to Python 3.10
        • Deprecated
        • Removed
      • Notable security feature in 3.10.7
      • Notable security feature in 3.10.8
      • Notable changes in 3.10.12
        • tarfile
    • What’s New In Python 3.9
      • Summary – Release highlights
      • You should check for DeprecationWarning in your code
      • New Features
        • Dictionary Merge & Update Operators
        • New String Methods to Remove Prefixes and Suffixes
        • Type Hinting Generics in Standard Collections
        • New Parser
      • Other Language Changes
      • New Modules
        • zoneinfo
        • graphlib
      • Improved Modules
        • ast
        • asyncio
        • compileall
        • concurrent.futures
        • curses
        • datetime
        • distutils
        • fcntl
        • ftplib
        • gc
        • hashlib
        • http
        • IDLE and idlelib
        • imaplib
        • importlib
        • inspect
        • ipaddress
        • math
        • multiprocessing
        • nntplib
        • os
        • pathlib
        • pdb
        • poplib
        • pprint
        • pydoc
        • random
        • signal
        • smtplib
        • socket
        • time
        • sys
        • tracemalloc
        • typing
        • unicodedata
        • venv
        • xml
      • Optimizations
      • Deprecated
      • Removed
      • Porting to Python 3.9
        • Changes in the Python API
        • Changes in the C API
        • CPython bytecode changes
      • Build Changes
      • C API Changes
        • New Features
        • Porting to Python 3.9
        • Removed
      • Notable changes in Python 3.9.1
        • typing
        • macOS 11.0 (Big Sur) and Apple Silicon Mac support
      • Notable changes in Python 3.9.2
        • collections.abc
        • urllib.parse
      • Notable changes in Python 3.9.3
      • Notable changes in Python 3.9.5
        • urllib.parse
      • Notable security feature in 3.9.14
      • Notable changes in 3.9.17
        • tarfile
    • What’s New In Python 3.8
      • Summary – Release highlights
      • New Features
        • Assignment expressions
        • Positional-only parameters
        • Parallel filesystem cache for compiled bytecode files
        • Debug build uses the same ABI as release build
        • f-strings support = for self-documenting expressions and debugging
        • PEP 578: Python Runtime Audit Hooks
        • PEP 587: Python Initialization Configuration
        • PEP 590: Vectorcall: a fast calling protocol for CPython
        • Pickle protocol 5 with out-of-band data buffers
      • Other Language Changes
      • New Modules
      • Improved Modules
        • ast
        • asyncio
        • builtins
        • collections
        • cProfile
        • csv
        • curses
        • ctypes
        • datetime
        • functools
        • gc
        • gettext
        • gzip
        • IDLE and idlelib
        • inspect
        • io
        • itertools
        • json.tool
        • logging
        • math
        • mmap
        • multiprocessing
        • os
        • os.path
        • pathlib
        • pickle
        • plistlib
        • pprint
        • py_compile
        • shlex
        • shutil
        • socket
        • ssl
        • statistics
        • sys
        • tarfile
        • threading
        • tokenize
        • tkinter
        • time
        • typing
        • unicodedata
        • unittest
        • venv
        • weakref
        • xml
        • xmlrpc
      • Optimizations
      • Build and C API Changes
      • Deprecated
      • API and Feature Removals
      • Porting to Python 3.8
        • Changes in Python behavior
        • Changes in the Python API
        • Changes in the C API
        • CPython bytecode changes
        • Demos and Tools
      • Notable changes in Python 3.8.1
      • Notable changes in Python 3.8.2
      • Notable changes in Python 3.8.3
      • Notable changes in Python 3.8.8
      • Notable changes in Python 3.8.9
      • Notable changes in Python 3.8.10
        • macOS 11.0 (Big Sur) and Apple Silicon Mac support
      • Notable changes in Python 3.8.10
        • urllib.parse
      • Notable changes in Python 3.8.12
        • Changes in the Python API
      • Notable security feature in 3.8.14
      • Notable changes in 3.8.17
        • tarfile
    • What’s New In Python 3.7
      • Summary – Release Highlights
      • New Features
        • PEP 563: Postponed Evaluation of Annotations
        • PEP 538: Legacy C Locale Coercion
        • PEP 540: Forced UTF-8 Runtime Mode
        • PEP 553: Built-in breakpoint()
        • PEP 539: New C API for Thread-Local Storage
        • PEP 562: Customization of Access to Module Attributes
        • PEP 564: New Time Functions With Nanosecond Resolution
        • PEP 565: Show DeprecationWarning in __main__
        • PEP 560: Core Support for typing module and Generic Types
        • PEP 552: Hash-based .pyc Files
        • PEP 545: Python Documentation Translations
        • Python Development Mode (-X dev)
      • Other Language Changes
      • New Modules
        • contextvars
        • dataclasses
        • importlib.resources
      • Improved Modules
        • argparse
        • asyncio
        • binascii
        • calendar
        • collections
        • compileall
        • concurrent.futures
        • contextlib
        • cProfile
        • crypt
        • datetime
        • dbm
        • decimal
        • dis
        • distutils
        • enum
        • functools
        • gc
        • hmac
        • http.client
        • http.server
        • idlelib and IDLE
        • importlib
        • io
        • ipaddress
        • itertools
        • locale
        • logging
        • math
        • mimetypes
        • msilib
        • multiprocessing
        • os
        • pathlib
        • pdb
        • py_compile
        • pydoc
        • queue
        • re
        • signal
        • socket
        • socketserver
        • sqlite3
        • ssl
        • string
        • subprocess
        • sys
        • time
        • tkinter
        • tracemalloc
        • types
        • unicodedata
        • unittest
        • unittest.mock
        • urllib.parse
        • uu
        • uuid
        • warnings
        • xml
        • xml.etree
        • xmlrpc.server
        • zipapp
        • zipfile
      • C API Changes
      • Build Changes
      • Optimizations
      • Other CPython Implementation Changes
      • Deprecated Python Behavior
      • Deprecated Python modules, functions and methods
        • aifc
        • asyncio
        • collections
        • dbm
        • enum
        • gettext
        • importlib
        • locale
        • macpath
        • threading
        • socket
        • ssl
        • sunau
        • sys
        • wave
      • Deprecated functions and types of the C API
      • Platform Support Removals
      • API and Feature Removals
      • Module Removals
      • Windows-only Changes
      • Porting to Python 3.7
        • Changes in Python Behavior
        • Changes in the Python API
        • Changes in the C API
        • CPython bytecode changes
        • Windows-only Changes
        • Other CPython implementation changes
      • Notable changes in Python 3.7.1
      • Notable changes in Python 3.7.2
      • Notable changes in Python 3.7.6
      • Notable changes in Python 3.7.10
      • Notable changes in Python 3.7.11
      • Notable security feature in 3.7.14
    • What’s New In Python 3.6
      • Summary – Release highlights
      • New Features
        • PEP 498: Formatted string literals
        • PEP 526: Syntax for variable annotations
        • PEP 515: Underscores in Numeric Literals
        • PEP 525: Asynchronous Generators
        • PEP 530: Asynchronous Comprehensions
        • PEP 487: Simpler customization of class creation
        • PEP 487: Descriptor Protocol Enhancements
        • PEP 519: Adding a file system path protocol
        • PEP 495: Local Time Disambiguation
        • PEP 529: Change Windows filesystem encoding to UTF-8
        • PEP 528: Change Windows console encoding to UTF-8
        • PEP 520: Preserving Class Attribute Definition Order
        • PEP 468: Preserving Keyword Argument Order
        • New dict implementation
        • PEP 523: Adding a frame evaluation API to CPython
        • PYTHONMALLOC environment variable
        • DTrace and SystemTap probing support
      • Other Language Changes
      • New Modules
        • secrets
      • Improved Modules
        • array
        • ast
        • asyncio
        • binascii
        • cmath
        • collections
        • concurrent.futures
        • contextlib
        • datetime
        • decimal
        • distutils
        • email
        • encodings
        • enum
        • faulthandler
        • fileinput
        • hashlib
        • http.client
        • idlelib and IDLE
        • importlib
        • inspect
        • json
        • logging
        • math
        • multiprocessing
        • os
        • pathlib
        • pdb
        • pickle
        • pickletools
        • pydoc
        • random
        • re
        • readline
        • rlcompleter
        • shlex
        • site
        • sqlite3
        • socket
        • socketserver
        • ssl
        • statistics
        • struct
        • subprocess
        • sys
        • telnetlib
        • time
        • timeit
        • tkinter
        • traceback
        • tracemalloc
        • typing
        • unicodedata
        • unittest.mock
        • urllib.request
        • urllib.robotparser
        • venv
        • warnings
        • winreg
        • winsound
        • xmlrpc.client
        • zipfile
        • zlib
      • Optimizations
      • Build and C API Changes
      • Other Improvements
      • Deprecated
        • New Keywords
        • Deprecated Python behavior
        • Deprecated Python modules, functions and methods
          • asynchat
          • asyncore
          • dbm
          • distutils
          • grp
          • importlib
          • os
          • re
          • ssl
          • tkinter
          • venv
        • xml
        • Deprecated functions and types of the C API
        • Deprecated Build Options
      • Removed
        • API and Feature Removals
      • Porting to Python 3.6
        • Changes in ‘python’ Command Behavior
        • Changes in the Python API
        • Changes in the C API
        • CPython bytecode changes
      • Notable changes in Python 3.6.2
        • New make regen-all build target
        • Removal of make touch build target
      • Notable changes in Python 3.6.4
      • Notable changes in Python 3.6.5
      • Notable changes in Python 3.6.7
      • Notable changes in Python 3.6.10
      • Notable changes in Python 3.6.13
      • Notable changes in Python 3.6.14
    • What’s New In Python 3.5
      • Summary – Release highlights
      • New Features
        • PEP 492 - Coroutines with async and await syntax
        • PEP 465 - A dedicated infix operator for matrix multiplication
        • PEP 448 - Additional Unpacking Generalizations
        • PEP 461 - percent formatting support for bytes and bytearray
        • PEP 484 - Type Hints
        • PEP 471 - os.scandir() function – a better and faster directory iterator
        • PEP 475: Retry system calls failing with EINTR
        • PEP 479: Change StopIteration handling inside generators
        • PEP 485: A function for testing approximate equality
        • PEP 486: Make the Python Launcher aware of virtual environments
        • PEP 488: Elimination of PYO files
        • PEP 489: Multi-phase extension module initialization
      • Other Language Changes
      • New Modules
        • typing
        • zipapp
      • Improved Modules
        • argparse
        • asyncio
        • bz2
        • cgi
        • cmath
        • code
        • collections
        • collections.abc
        • compileall
        • concurrent.futures
        • configparser
        • contextlib
        • csv
        • curses
        • dbm
        • difflib
        • distutils
        • doctest
        • email
        • enum
        • faulthandler
        • functools
        • glob
        • gzip
        • heapq
        • http
        • http.client
        • idlelib and IDLE
        • imaplib
        • imghdr
        • importlib
        • inspect
        • io
        • ipaddress
        • json
        • linecache
        • locale
        • logging
        • lzma
        • math
        • multiprocessing
        • operator
        • os
        • pathlib
        • pickle
        • poplib
        • re
        • readline
        • selectors
        • shutil
        • signal
        • smtpd
        • smtplib
        • sndhdr
        • socket
        • ssl
          • Memory BIO Support
          • Application-Layer Protocol Negotiation Support
          • Other Changes
        • sqlite3
        • subprocess
        • sys
        • sysconfig
        • tarfile
        • threading
        • time
        • timeit
        • tkinter
        • traceback
        • types
        • unicodedata
        • unittest
        • unittest.mock
        • urllib
        • wsgiref
        • xmlrpc
        • xml.sax
        • zipfile
      • Other module-level changes
      • Optimizations
      • Build and C API Changes
      • Deprecated
        • New Keywords
        • Deprecated Python Behavior
        • Unsupported Operating Systems
        • Deprecated Python modules, functions and methods
      • Removed
        • API and Feature Removals
      • Porting to Python 3.5
        • Changes in Python behavior
        • Changes in the Python API
        • Changes in the C API
      • Notable changes in Python 3.5.4
        • New make regen-all build target
        • Removal of make touch build target
    • What’s New In Python 3.4
      • Summary – Release Highlights
      • New Features
        • PEP 453: Explicit Bootstrapping of PIP in Python Installations
          • Bootstrapping pip By Default
          • Documentation Changes
        • PEP 446: Newly Created File Descriptors Are Non-Inheritable
        • Improvements to Codec Handling
        • PEP 451: A ModuleSpec Type for the Import System
        • Other Language Changes
      • New Modules
        • asyncio
        • ensurepip
        • enum
        • pathlib
        • selectors
        • statistics
        • tracemalloc
      • Improved Modules
        • abc
        • aifc
        • argparse
        • audioop
        • base64
        • collections
        • colorsys
        • contextlib
        • dbm
        • dis
        • doctest
        • email
        • filecmp
        • functools
        • gc
        • glob
        • hashlib
        • hmac
        • html
        • http
        • idlelib and IDLE
        • importlib
        • inspect
        • ipaddress
        • logging
        • marshal
        • mmap
        • multiprocessing
        • operator
        • os
        • pdb
        • pickle
        • plistlib
        • poplib
        • pprint
        • pty
        • pydoc
        • re
        • resource
        • select
        • shelve
        • shutil
        • smtpd
        • smtplib
        • socket
        • sqlite3
        • ssl
        • stat
        • struct
        • subprocess
        • sunau
        • sys
        • tarfile
        • textwrap
        • threading
        • traceback
        • types
        • urllib
        • unittest
        • venv
        • wave
        • weakref
        • xml.etree
        • zipfile
      • CPython Implementation Changes
        • PEP 445: Customization of CPython Memory Allocators
        • PEP 442: Safe Object Finalization
        • PEP 456: Secure and Interchangeable Hash Algorithm
        • PEP 436: Argument Clinic
        • Other Build and C API Changes
        • Other Improvements
        • Significant Optimizations
      • Deprecated
        • Deprecations in the Python API
        • Deprecated Features
      • Removed
        • Operating Systems No Longer Supported
        • API and Feature Removals
        • Code Cleanups
      • Porting to Python 3.4
        • Changes in ‘python’ Command Behavior
        • Changes in the Python API
        • Changes in the C API
      • Changed in 3.4.3
        • PEP 476: Enabling certificate verification by default for stdlib http clients
    • What’s New In Python 3.3
      • Summary – Release highlights
      • PEP 405: Virtual Environments
      • PEP 420: Implicit Namespace Packages
      • PEP 3118: New memoryview implementation and buffer protocol documentation
        • Features
        • API changes
      • PEP 393: Flexible String Representation
        • Functionality
        • Performance and resource usage
      • PEP 397: Python Launcher for Windows
      • PEP 3151: Reworking the OS and IO exception hierarchy
      • PEP 380: Syntax for Delegating to a Subgenerator
      • PEP 409: Suppressing exception context
      • PEP 414: Explicit Unicode literals
      • PEP 3155: Qualified name for classes and functions
      • PEP 412: Key-Sharing Dictionary
      • PEP 362: Function Signature Object
      • PEP 421: Adding sys.implementation
        • SimpleNamespace
      • Using importlib as the Implementation of Import
        • New APIs
        • Visible Changes
      • Other Language Changes
      • A Finer-Grained Import Lock
      • Builtin functions and types
      • New Modules
        • faulthandler
        • ipaddress
        • lzma
      • Improved Modules
        • abc
        • array
        • base64
        • binascii
        • bz2
        • codecs
        • collections
        • contextlib
        • crypt
        • curses
        • datetime
        • decimal
          • Features
          • API changes
        • email
          • Policy Framework
          • Provisional Policy with New Header API
          • Other API Changes
        • ftplib
        • functools
        • gc
        • hmac
        • http
        • html
        • imaplib
        • inspect
        • io
        • itertools
        • logging
        • math
        • mmap
        • multiprocessing
        • nntplib
        • os
        • pdb
        • pickle
        • pydoc
        • re
        • sched
        • select
        • shlex
        • shutil
        • signal
        • smtpd
        • smtplib
        • socket
        • socketserver
        • sqlite3
        • ssl
        • stat
        • struct
        • subprocess
        • sys
        • tarfile
        • tempfile
        • textwrap
        • threading
        • time
        • types
        • unittest
        • urllib
        • webbrowser
        • xml.etree.ElementTree
        • zlib
      • Optimizations
      • Build and C API Changes
      • Deprecated
        • Unsupported Operating Systems
        • Deprecated Python modules, functions and methods
        • Deprecated functions and types of the C API
        • Deprecated features
      • Porting to Python 3.3
        • Porting Python code
        • Porting C code
        • Building C extensions
        • Command Line Switch Changes
    • What’s New In Python 3.2
      • PEP 384: Defining a Stable ABI
      • PEP 389: Argparse Command Line Parsing Module
      • PEP 391: Dictionary Based Configuration for Logging
      • PEP 3148: The concurrent.futures module
      • PEP 3147: PYC Repository Directories
      • PEP 3149: ABI Version Tagged .so Files
      • PEP 3333: Python Web Server Gateway Interface v1.0.1
      • Other Language Changes
      • New, Improved, and Deprecated Modules
        • email
        • elementtree
        • functools
        • itertools
        • collections
        • threading
        • datetime and time
        • math
        • abc
        • io
        • reprlib
        • logging
        • csv
        • contextlib
        • decimal and fractions
        • ftp
        • popen
        • select
        • gzip and zipfile
        • tarfile
        • hashlib
        • ast
        • os
        • shutil
        • sqlite3
        • html
        • socket
        • ssl
        • nntp
        • certificates
        • imaplib
        • http.client
        • unittest
        • random
        • poplib
        • asyncore
        • tempfile
        • inspect
        • pydoc
        • dis
        • dbm
        • ctypes
        • site
        • sysconfig
        • pdb
        • configparser
        • urllib.parse
        • mailbox
        • turtledemo
      • Multi-threading
      • Optimizations
      • Unicode
      • Codecs
      • Documentation
      • IDLE
      • Code Repository
      • Build and C API Changes
      • Porting to Python 3.2
    • What’s New In Python 3.1
      • PEP 372: Ordered Dictionaries
      • PEP 378: Format Specifier for Thousands Separator
      • Other Language Changes
      • New, Improved, and Deprecated Modules
      • Optimizations
      • IDLE
      • Build and C API Changes
      • Porting to Python 3.1
    • What’s New In Python 3.0
      • Common Stumbling Blocks
        • Print Is A Function
        • Views And Iterators Instead Of Lists
        • Ordering Comparisons
        • Integers
        • Text Vs. Data Instead Of Unicode Vs. 8-bit
      • Overview Of Syntax Changes
        • New Syntax
        • Changed Syntax
        • Removed Syntax
      • Changes Already Present In Python 2.6
      • Library Changes
      • PEP 3101: A New Approach To String Formatting
      • Changes To Exceptions
      • Miscellaneous Other Changes
        • Operators And Special Methods
        • Builtins
      • Build and C API Changes
      • Performance
      • Porting To Python 3.0
    • What’s New in Python 2.7
      • The Future for Python 2.x
      • Changes to the Handling of Deprecation Warnings
      • Python 3.1 Features
      • PEP 372: Adding an Ordered Dictionary to collections
      • PEP 378: Format Specifier for Thousands Separator
      • PEP 389: The argparse Module for Parsing Command Lines
      • PEP 391: Dictionary-Based Configuration For Logging
      • PEP 3106: Dictionary Views
      • PEP 3137: The memoryview Object
      • Other Language Changes
        • Interpreter Changes
        • Optimizations
      • New and Improved Modules
        • New module: importlib
        • New module: sysconfig
        • ttk: Themed Widgets for Tk
        • Updated module: unittest
        • Updated module: ElementTree 1.3
      • Build and C API Changes
        • Capsules
        • Port-Specific Changes: Windows
        • Port-Specific Changes: Mac OS X
        • Port-Specific Changes: FreeBSD
      • Other Changes and Fixes
      • Porting to Python 2.7
      • New Features Added to Python 2.7 Maintenance Releases
        • Two new environment variables for debug mode
        • PEP 434: IDLE Enhancement Exception for All Branches
        • PEP 466: Network Security Enhancements for Python 2.7
        • PEP 477: Backport ensurepip (PEP 453) to Python 2.7
          • Bootstrapping pip By Default
          • Documentation Changes
        • PEP 476: Enabling certificate verification by default for stdlib http clients
        • PEP 493: HTTPS verification migration tools for Python 2.7
        • New make regen-all build target
        • Removal of make touch build target
      • Acknowledgements
    • What’s New in Python 2.6
      • Python 3.0
      • Changes to the Development Process
        • New Issue Tracker: Roundup
        • New Documentation Format: reStructuredText Using Sphinx
      • PEP 343: The ‘with’ statement
        • Writing Context Managers
        • The contextlib module
      • PEP 366: Explicit Relative Imports From a Main Module
      • PEP 370: Per-user site-packages Directory
      • PEP 371: The multiprocessing Package
      • PEP 3101: Advanced String Formatting
      • PEP 3105: print As a Function
      • PEP 3110: Exception-Handling Changes
      • PEP 3112: Byte Literals
      • PEP 3116: New I/O Library
      • PEP 3118: Revised Buffer Protocol
      • PEP 3119: Abstract Base Classes
      • PEP 3127: Integer Literal Support and Syntax
      • PEP 3129: Class Decorators
      • PEP 3141: A Type Hierarchy for Numbers
        • The fractions Module
      • Other Language Changes
        • Optimizations
        • Interpreter Changes
      • New and Improved Modules
        • The ast module
        • The future_builtins module
        • The json module: JavaScript Object Notation
        • The plistlib module: A Property-List Parser
        • ctypes Enhancements
        • Improved SSL Support
      • Deprecations and Removals
      • Build and C API Changes
        • Port-Specific Changes: Windows
        • Port-Specific Changes: Mac OS X
        • Port-Specific Changes: IRIX
      • Porting to Python 2.6
      • Acknowledgements
    • What’s New in Python 2.5
      • PEP 308: Conditional Expressions
      • PEP 309: Partial Function Application
      • PEP 314: Metadata for Python Software Packages v1.1
      • PEP 328: Absolute and Relative Imports
      • PEP 338: Executing Modules as Scripts
      • PEP 341: Unified try/except/finally
      • PEP 342: New Generator Features
      • PEP 343: The ‘with’ statement
        • Writing Context Managers
        • The contextlib module
      • PEP 352: Exceptions as New-Style Classes
      • PEP 353: Using ssize_t as the index type
      • PEP 357: The ‘__index__’ method
      • Other Language Changes
        • Interactive Interpreter Changes
        • Optimizations
      • New, Improved, and Removed Modules
        • The ctypes package
        • The ElementTree package
        • The hashlib package
        • The sqlite3 package
        • The wsgiref package
      • Build and C API Changes
        • Port-Specific Changes
      • Porting to Python 2.5
      • Acknowledgements
    • What’s New in Python 2.4
      • PEP 218: Built-In Set Objects
      • PEP 237: Unifying Long Integers and Integers
      • PEP 289: Generator Expressions
      • PEP 292: Simpler String Substitutions
      • PEP 318: Decorators for Functions and Methods
      • PEP 322: Reverse Iteration
      • PEP 324: New subprocess Module
      • PEP 327: Decimal Data Type
        • Why is Decimal needed?
        • The Decimal type
        • The Context type
      • PEP 328: Multi-line Imports
      • PEP 331: Locale-Independent Float/String Conversions
      • Other Language Changes
        • Optimizations
      • New, Improved, and Deprecated Modules
        • cookielib
        • doctest
      • Build and C API Changes
        • Port-Specific Changes
      • Porting to Python 2.4
      • Acknowledgements
    • What’s New in Python 2.3
      • PEP 218: A Standard Set Datatype
      • PEP 255: Simple Generators
      • PEP 263: Source Code Encodings
      • PEP 273: Importing Modules from ZIP Archives
      • PEP 277: Unicode file name support for Windows NT
      • PEP 278: Universal Newline Support
      • PEP 279: enumerate()
      • PEP 282: The logging Package
      • PEP 285: A Boolean Type
      • PEP 293: Codec Error Handling Callbacks
      • PEP 301: Package Index and Metadata for Distutils
      • PEP 302: New Import Hooks
      • PEP 305: Comma-separated Files
      • PEP 307: Pickle Enhancements
      • Extended Slices
      • Other Language Changes
        • String Changes
        • Optimizations
      • New, Improved, and Deprecated Modules
        • Date/Time Type
        • The optparse Module
      • Pymalloc: A Specialized Object Allocator
      • Build and C API Changes
        • Port-Specific Changes
      • Other Changes and Fixes
      • Porting to Python 2.3
      • Acknowledgements
    • What’s New in Python 2.2
      • Introduction
      • PEPs 252 and 253: Type and Class Changes
        • Old and New Classes
        • Descriptors
        • Multiple Inheritance: The Diamond Rule
        • Attribute Access
        • Related Links
      • PEP 234: Iterators
      • PEP 255: Simple Generators
      • PEP 237: Unifying Long Integers and Integers
      • PEP 238: Changing the Division Operator
      • Unicode Changes
      • PEP 227: Nested Scopes
      • New and Improved Modules
      • Interpreter Changes and Fixes
      • Other Changes and Fixes
      • Acknowledgements
    • What’s New in Python 2.1
      • Introduction
      • PEP 227: Nested Scopes
      • PEP 236: __future__ Directives
      • PEP 207: Rich Comparisons
      • PEP 230: Warning Framework
      • PEP 229: New Build System
      • PEP 205: Weak References
      • PEP 232: Function Attributes
      • PEP 235: Importing Modules on Case-Insensitive Platforms
      • PEP 217: Interactive Display Hook
      • PEP 208: New Coercion Model
      • PEP 241: Metadata in Python Packages
      • New and Improved Modules
      • Other Changes and Fixes
      • Acknowledgements
    • What’s New in Python 2.0
      • Introduction
      • What About Python 1.6?
      • New Development Process
      • Unicode
      • List Comprehensions
      • Augmented Assignment
      • String Methods
      • Garbage Collection of Cycles
      • Other Core Changes
        • Minor Language Changes
        • Changes to Built-in Functions
      • Porting to 2.0
      • Extending/Embedding Changes
      • Distutils: Making Modules Easy to Install
      • XML Modules
        • SAX2 Support
        • DOM Support
        • Relationship to PyXML
      • Module changes
      • New modules
      • IDLE Improvements
      • Deleted and Deprecated Modules
      • Acknowledgements
    • Changelog
      • Python next
        • Security
        • Core and Builtins
        • Library
        • Tests
        • Windows
        • C API
      • Python 3.16.0 alpha 2
        • Security
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • WASI
        • IDLE
        • Tools/Demos
        • C API
      • Python 3.16.0 alpha 1
        • Security
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • Tools/Demos
        • C API
      • Python 3.15.0 beta 1
        • Security
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • C API
      • Python 3.15.0 alpha 8
        • Security
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • Tools/Demos
        • C API
      • Python 3.15.0 alpha 7
        • Windows
        • Tests
        • Security
        • Library
        • Documentation
        • Core and Builtins
        • C API
        • Build
      • Python 3.15.0 alpha 6
        • macOS
        • Windows
        • Tests
        • Security
        • Library
        • IDLE
        • Core and Builtins
        • C API
        • Build
      • Python 3.15.0 alpha 5
        • Windows
        • Tools/Demos
        • Tests
        • Library
        • Documentation
        • Core and Builtins
        • C API
      • Python 3.15.0 alpha 4
        • Tests
        • Library
        • Core and Builtins
      • Python 3.15.0 alpha 3
        • Tools/Demos
        • Tests
        • Security
        • Library
        • Documentation
        • Core and Builtins
        • C API
        • Build
      • Python 3.15.0 alpha 2
        • Windows
        • Tools/Demos
        • Tests
        • Security
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • C API
        • Build
      • Python 3.15.0 alpha 1
        • macOS
        • Windows
        • Tools/Demos
        • Tests
        • Security
        • Library
        • IDLE
        • Documentation
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • C API
        • Build
      • Python 3.14.0 beta 1
        • Windows
        • Tools/Demos
        • Tests
        • Security
        • Library
        • IDLE
        • Documentation
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • C API
        • Build
      • Python 3.14.0 alpha 7
        • macOS
        • Windows
        • Tools/Demos
        • Tests
        • Security
        • Library
        • Documentation
        • Core and Builtins
        • Library
        • Core and Builtins
        • C API
        • Build
      • Python 3.14.0 alpha 6
        • macOS
        • Windows
        • Tools/Demos
        • Tests
        • Security
        • Library
        • Documentation
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • C API
        • Build
      • Python 3.14.0 alpha 5
        • macOS
        • Tools/Demos
        • Tests
        • Security
        • Library
        • IDLE
        • Documentation
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • C API
        • Build
      • Python 3.14.0 alpha 4
        • macOS
        • Tools/Demos
        • Tests
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • C API
        • Build
      • Python 3.14.0 alpha 3
        • Windows
        • Tools/Demos
        • Tests
        • Security
        • Library
        • Documentation
        • Core and Builtins
        • Library
        • Core and Builtins
        • C API
        • Build
      • Python 3.14.0 alpha 2
        • Windows
        • Tools/Demos
        • Tests
        • Security
        • Library
        • Documentation
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • C API
        • Build
      • Python 3.14.0 alpha 1
        • macOS
        • Windows
        • Tools/Demos
        • Tests
        • Security
        • Library
        • IDLE
        • Documentation
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • C API
        • Build
      • Python 3.13.0 beta 1
        • Security
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Documentation
        • Build
        • Windows
        • macOS
        • IDLE
        • C API
      • Python 3.13.0 alpha 6
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • C API
      • Python 3.13.0 alpha 5
        • Security
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • Tools/Demos
        • C API
      • Python 3.13.0 alpha 4
        • Security
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • Tools/Demos
        • C API
      • Python 3.13.0 alpha 3
        • Security
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • C API
      • Python 3.13.0 alpha 2
        • Core and Builtins
        • Library
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • Tools/Demos
        • C API
      • Python 3.13.0 alpha 1
        • Security
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • Tools/Demos
        • C API
      • Python 3.12.0 beta 1
        • Security
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • Tools/Demos
        • C API
      • Python 3.12.0 alpha 7
        • Core and Builtins
        • Library
        • Core and Builtins
        • Build
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • Tools/Demos
        • C API
      • Python 3.12.0 alpha 6
        • Security
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • C API
      • Python 3.12.0 alpha 5
        • Security
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
      • Python 3.12.0 alpha 4
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • Tools/Demos
        • C API
      • Python 3.12.0 alpha 3
        • Security
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • Tools/Demos
        • C API
      • Python 3.12.0 alpha 2
        • Security
        • Core and Builtins
        • Build
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • C API
      • Python 3.12.0 alpha 1
        • Security
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • Tools/Demos
        • C API
      • Python 3.11.0 beta 1
        • Security
        • Core and Builtins
        • Library
        • Core and Builtins
        • Build
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • Tools/Demos
        • C API
      • Python 3.11.0 alpha 7
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • Tools/Demos
        • C API
      • Python 3.11.0 alpha 6
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • IDLE
        • C API
      • Python 3.11.0 alpha 5
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Build
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • C API
      • Python 3.11.0 alpha 4
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • C API
      • Python 3.11.0 alpha 3
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • C API
      • Python 3.11.0 alpha 2
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • C API
      • Python 3.11.0 alpha 1
        • Security
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • Tools/Demos
        • C API
      • Python 3.10.0 beta 1
        • Security
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • C API
      • Python 3.10.0 alpha 7
        • Security
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • IDLE
        • C API
      • Python 3.10.0 alpha 6
        • Security
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • C API
      • Python 3.10.0 alpha 5
        • Security
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • C API
      • Python 3.10.0 alpha 4
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • macOS
        • Tools/Demos
        • C API
      • Python 3.10.0 alpha 3
        • Security
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • Tools/Demos
        • C API
      • Python 3.10.0 alpha 2
        • Security
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • C API
      • Python 3.10.0 alpha 1
        • Security
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • C API
      • Python 3.9.0 beta 1
        • Security
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • Tools/Demos
        • C API
      • Python 3.9.0 alpha 6
        • Security
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • Tools/Demos
        • C API
      • Python 3.9.0 alpha 5
        • Security
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • Tools/Demos
        • C API
      • Python 3.9.0 alpha 4
        • Security
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • IDLE
        • C API
      • Python 3.9.0 alpha 3
        • Core and Builtins
        • Library
        • Documentation
        • Build
        • IDLE
        • C API
      • Python 3.9.0 alpha 2
        • Security
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • C API
      • Python 3.9.0 alpha 1
        • Security
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • Tools/Demos
        • C API
      • Python 3.8.0 beta 1
        • Security
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • Tools/Demos
        • C API
      • Python 3.8.0 alpha 4
        • Security
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • Tools/Demos
        • C API
      • Python 3.8.0 alpha 3
        • Security
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • IDLE
        • Tools/Demos
        • C API
      • Python 3.8.0 alpha 2
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Windows
        • IDLE
      • Python 3.8.0 alpha 1
        • Security
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • Tools/Demos
        • C API
      • Python 3.7.0 final
        • Library
        • C API
      • Python 3.7.0 release candidate 1
        • Core and Builtins
        • Library
        • Documentation
        • Build
        • Windows
        • IDLE
      • Python 3.7.0 beta 5
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • macOS
        • IDLE
      • Python 3.7.0 beta 4
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • Tools/Demos
      • Python 3.7.0 beta 3
        • Security
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • Tools/Demos
        • C API
      • Python 3.7.0 beta 2
        • Security
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • Tools/Demos
      • Python 3.7.0 beta 1
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • C API
      • Python 3.7.0 alpha 4
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Windows
        • Tools/Demos
        • C API
      • Python 3.7.0 alpha 3
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • Tools/Demos
        • C API
      • Python 3.7.0 alpha 2
        • Core and Builtins
        • Library
        • Documentation
        • Build
        • IDLE
        • C API
      • Python 3.7.0 alpha 1
        • Security
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • IDLE
        • Tools/Demos
        • C API
      • Python 3.6.6 final
      • Python 3.6.6 release candidate 1
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • Tools/Demos
        • C API
      • Python 3.6.5 final
        • Tests
        • Build
      • Python 3.6.5 release candidate 1
        • Security
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • Tools/Demos
        • C API
      • Python 3.6.4 final
      • Python 3.6.4 release candidate 1
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • macOS
        • IDLE
        • Tools/Demos
        • C API
      • Python 3.6.3 final
        • Library
        • Build
      • Python 3.6.3 release candidate 1
        • Security
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • IDLE
        • Tools/Demos
      • Python 3.6.2 final
      • Python 3.6.2 release candidate 2
        • Security
      • Python 3.6.2 release candidate 1
        • Security
        • Core and Builtins
        • Library
        • IDLE
        • C API
        • Build
        • Documentation
        • Tools/Demos
        • Tests
        • Windows
      • Python 3.6.1 final
        • Core and Builtins
        • Build
      • Python 3.6.1 release candidate 1
        • Core and Builtins
        • Library
        • IDLE
        • Windows
        • C API
        • Documentation
        • Tests
        • Build
      • Python 3.6.0 final
      • Python 3.6.0 release candidate 2
        • Core and Builtins
        • Tools/Demos
        • Windows
        • Build
      • Python 3.6.0 release candidate 1
        • Core and Builtins
        • Library
        • C API
        • Documentation
        • Tools/Demos
      • Python 3.6.0 beta 4
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
      • Python 3.6.0 beta 3
        • Core and Builtins
        • Library
        • Windows
        • Build
        • Tests
      • Python 3.6.0 beta 2
        • Core and Builtins
        • Library
        • Windows
        • C API
        • Build
        • Tests
      • Python 3.6.0 beta 1
        • Core and Builtins
        • Library
        • IDLE
        • C API
        • Tests
        • Build
        • Tools/Demos
        • Windows
      • Python 3.6.0 alpha 4
        • Core and Builtins
        • Library
        • IDLE
        • Tests
        • Windows
        • Build
      • Python 3.6.0 alpha 3
        • Security
        • Core and Builtins
        • Library
        • IDLE
        • C API
        • Build
        • Tools/Demos
        • Documentation
        • Tests
      • Python 3.6.0 alpha 2
        • Security
        • Core and Builtins
        • Library
        • IDLE
        • Documentation
        • Tests
        • Windows
        • Build
        • C API
        • Tools/Demos
      • Python 3.6.0 alpha 1
        • Security
        • Core and Builtins
        • Library
        • IDLE
        • Documentation
        • Tests
        • Build
        • Windows
        • Tools/Demos
        • C API
      • Python 3.5.5 final
      • Python 3.5.5 release candidate 1
        • Security
        • Core and Builtins
        • Library
      • Python 3.5.4 final
        • Library
      • Python 3.5.4 release candidate 1
        • Security
        • Core and Builtins
        • Library
        • Documentation
        • Tests
        • Build
        • Windows
        • C API
      • Python 3.5.3 final
      • Python 3.5.3 release candidate 1
        • Security
        • Core and Builtins
        • Library
        • IDLE
        • C API
        • Documentation
        • Tests
        • Tools/Demos
        • Windows
        • Build
      • Python 3.5.2 final
        • Core and Builtins
        • Tests
        • IDLE
      • Python 3.5.2 release candidate 1
        • Security
        • Core and Builtins
        • Library
        • IDLE
        • Documentation
        • Tests
        • Build
        • Windows
        • Tools/Demos
      • Python 3.5.1 final
        • Core and Builtins
        • Windows
      • Python 3.5.1 release candidate 1
        • Core and Builtins
        • Library
        • IDLE
        • Documentation
        • Tests
        • Build
        • Windows
        • Tools/Demos
      • Python 3.5.0 final
        • Build
      • Python 3.5.0 release candidate 4
        • Library
        • Build
      • Python 3.5.0 release candidate 3
        • Core and Builtins
        • Library
      • Python 3.5.0 release candidate 2
        • Core and Builtins
        • Library
      • Python 3.5.0 release candidate 1
        • Core and Builtins
        • Library
        • IDLE
        • Documentation
        • Tests
      • Python 3.5.0 beta 4
        • Core and Builtins
        • Library
        • Build
      • Python 3.5.0 beta 3
        • Core and Builtins
        • Library
        • Tests
        • Documentation
        • Build
      • Python 3.5.0 beta 2
        • Core and Builtins
        • Library
      • Python 3.5.0 beta 1
        • Core and Builtins
        • Library
        • IDLE
        • Tests
        • Documentation
        • Tools/Demos
      • Python 3.5.0 alpha 4
        • Core and Builtins
        • Library
        • Build
        • Tests
        • Tools/Demos
        • C API
      • Python 3.5.0 alpha 3
        • Core and Builtins
        • Library
        • Build
        • Tests
        • Tools/Demos
      • Python 3.5.0 alpha 2
        • Core and Builtins
        • Library
        • Build
        • C API
        • Windows
      • Python 3.5.0 alpha 1
        • Core and Builtins
        • Library
        • IDLE
        • Build
        • C API
        • Documentation
        • Tests
        • Tools/Demos
        • Windows
  • The Python Tutorial
    • 1. Whetting Your Appetite
    • 2. Using the Python Interpreter
      • 2.1. Invoking the Interpreter
        • 2.1.1. Argument Passing
        • 2.1.2. Interactive Mode
      • 2.2. The Interpreter and Its Environment
        • 2.2.1. Source Code Encoding
    • 3. An Informal Introduction to Python
      • 3.1. Using Python as a Calculator
        • 3.1.1. Numbers
        • 3.1.2. Text
        • 3.1.3. Lists
      • 3.2. First Steps Towards Programming
    • 4. More Control Flow Tools
      • 4.1. if Statements
      • 4.2. for Statements
      • 4.3. The range() Function
      • 4.4. break and continue Statements
      • 4.5. else Clauses on Loops
      • 4.6. pass Statements
      • 4.7. match Statements
      • 4.8. Defining Functions
      • 4.9. More on Defining Functions
        • 4.9.1. Default Argument Values
        • 4.9.2. Keyword Arguments
        • 4.9.3. Special parameters
          • 4.9.3.1. Positional-or-Keyword Arguments
          • 4.9.3.2. Positional-Only Parameters
          • 4.9.3.3. Keyword-Only Arguments
          • 4.9.3.4. Function Examples
          • 4.9.3.5. Recap
        • 4.9.4. Arbitrary Argument Lists
        • 4.9.5. Unpacking Argument Lists
        • 4.9.6. Lambda Expressions
        • 4.9.7. Documentation Strings
        • 4.9.8. Function Annotations
      • 4.10. Intermezzo: Coding Style
    • 5. Data Structures
      • 5.1. More on Lists
        • 5.1.1. Using Lists as Stacks
        • 5.1.2. Using Lists as Queues
        • 5.1.3. List Comprehensions
        • 5.1.4. Nested List Comprehensions
        • 5.1.5. Unpacking in Lists and List Comprehensions
      • 5.2. The del statement
      • 5.3. Tuples and Sequences
      • 5.4. Sets
      • 5.5. Dictionaries
      • 5.6. Looping Techniques
      • 5.7. More on Conditions
      • 5.8. Comparing Sequences and Other Types
    • 6. Modules
      • 6.1. More on Modules
        • 6.1.1. Executing modules as scripts
        • 6.1.2. The Module Search Path
        • 6.1.3. “Compiled” Python files
      • 6.2. Standard Modules
      • 6.3. The dir() Function
      • 6.4. Packages
        • 6.4.1. Importing * From a Package
        • 6.4.2. Intra-package References
    • 7. Input and output
      • 7.1. Fancier output formatting
        • 7.1.1. Formatted string literals
        • 7.1.2. The string format() method
        • 7.1.3. Manual string formatting
        • 7.1.4. Old string formatting
      • 7.2. Reading and writing files
        • 7.2.1. Methods of file objects
        • 7.2.2. Saving structured data with json
    • 8. Errors and Exceptions
      • 8.1. Syntax Errors
      • 8.2. Exceptions
      • 8.3. Handling Exceptions
      • 8.4. Raising Exceptions
      • 8.5. Exception Chaining
      • 8.6. User-defined Exceptions
      • 8.7. Defining Clean-up Actions
      • 8.8. Predefined Clean-up Actions
      • 8.9. Raising and Handling Multiple Unrelated Exceptions
      • 8.10. Enriching Exceptions with Notes
    • 9. Classes
      • 9.1. A Word About Names and Objects
      • 9.2. Python Scopes and Namespaces
        • 9.2.1. Scopes and Namespaces Example
      • 9.3. A First Look at Classes
        • 9.3.1. Class Definition Syntax
        • 9.3.2. Class Objects
        • 9.3.3. Instance Objects
        • 9.3.4. Method Objects
        • 9.3.5. Class and Instance Variables
      • 9.4. Random Remarks
      • 9.5. Inheritance
        • 9.5.1. Multiple Inheritance
      • 9.6. Private Variables
      • 9.7. Odds and Ends
      • 9.8. Iterators
      • 9.9. Generators
      • 9.10. Generator Expressions
    • 10. Brief tour of the standard library
      • 10.1. Operating system interface
      • 10.2. File wildcards
      • 10.3. Command-line arguments
      • 10.4. Error output redirection and program termination
      • 10.5. String pattern matching
      • 10.6. Mathematics
      • 10.7. Internet access
      • 10.8. Dates and times
      • 10.9. Data compression
      • 10.10. Performance measurement
      • 10.11. Quality control
      • 10.12. Batteries included
    • 11. Brief tour of the standard library — part II
      • 11.1. Output formatting
      • 11.2. Templating
      • 11.3. Working with binary data record layouts
      • 11.4. Multi-threading
      • 11.5. Logging
      • 11.6. Weak references
      • 11.7. Tools for working with lists
      • 11.8. Decimal floating-point arithmetic
    • 12. Virtual Environments and Packages
      • 12.1. Introduction
      • 12.2. Creating Virtual Environments
      • 12.3. Managing Packages with pip
    • 13. What Now?
    • 14. Interactive Input Editing and History Substitution
      • 14.1. Tab Completion and History Editing
      • 14.2. Alternatives to the Interactive Interpreter
    • 15. Floating-Point Arithmetic: Issues and Limitations
      • 15.1. Representation Error
    • 16. Appendix
      • 16.1. Interactive Mode
        • 16.1.1. Error Handling
        • 16.1.2. Executable Python Scripts
        • 16.1.3. The Interactive Startup File
        • 16.1.4. The Customization Modules
  • Python Setup and Usage
    • 1. Command line and environment
      • 1.1. Command line
        • 1.1.1. Interface options
        • 1.1.2. Generic options
        • 1.1.3. Miscellaneous options
        • 1.1.4. Controlling color
      • 1.2. Environment variables
        • 1.2.1. Debug-mode variables
    • 2. Using Python on Unix platforms
      • 2.1. Getting and installing the latest version of Python
        • 2.1.1. On Linux
          • 2.1.1.1. Installing IDLE
        • 2.1.2. On FreeBSD and OpenBSD
      • 2.2. Building Python
      • 2.3. Python-related paths and files
      • 2.4. Miscellaneous
      • 2.5. Custom OpenSSL
    • 3. Configure Python
      • 3.1. Build requirements
        • 3.1.1. Requirements for optional modules
      • 3.2. Generated files
        • 3.2.1. configure script
      • 3.3. Configure options
        • 3.3.1. General options
        • 3.3.2. C compiler options
        • 3.3.3. Linker options
        • 3.3.4. Options for third-party dependencies
        • 3.3.5. WebAssembly options
        • 3.3.6. Install options
        • 3.3.7. Performance options
        • 3.3.8. Python debug build
        • 3.3.9. Debug options
        • 3.3.10. Linker options
        • 3.3.11. Libraries options
        • 3.3.12. Security options
        • 3.3.13. macOS options
        • 3.3.14. iOS options
        • 3.3.15. Cross compiling options
      • 3.4. Python build system
        • 3.4.1. Main files of the build system
        • 3.4.2. Main build steps
        • 3.4.3. Main Makefile targets
        • 3.4.4. C extensions
      • 3.5. Compiler and linker flags
        • 3.5.1. Preprocessor flags
        • 3.5.2. Compiler flags
        • 3.5.3. Linker flags
    • 4. Using Python on Windows
      • 4.1. Python install manager
        • 4.1.1. Installation
        • 4.1.2. Basic use
        • 4.1.3. Command help
        • 4.1.4. Listing runtimes
        • 4.1.5. Installing runtimes
        • 4.1.6. Offline installs
        • 4.1.7. Uninstalling runtimes
        • 4.1.8. Configuration
        • 4.1.9. Shebang lines
        • 4.1.10. Advanced installation
        • 4.1.11. Administrative configuration
        • 4.1.12. Installing free-threaded binaries
        • 4.1.13. Index signatures
        • 4.1.14. Proxy settings
        • 4.1.15. Troubleshooting
      • 4.2. The embeddable package
        • 4.2.1. Python application
        • 4.2.2. Embedding Python
      • 4.3. The nuget.org packages
        • 4.3.1. Free-threaded packages
      • 4.4. Alternative bundles
      • 4.5. Supported Windows versions
      • 4.6. Removing the MAX_PATH limitation
      • 4.7. UTF-8 mode
      • 4.8. Finding modules
      • 4.9. Additional modules
        • 4.9.1. PyWin32
        • 4.9.2. cx_Freeze
      • 4.10. Compiling Python on Windows
    • 5. Using Python on macOS
      • 5.1. Using Python for macOS from python.org
        • 5.1.1. Installation steps
        • 5.1.2. How to run a Python script
      • 5.2. Alternative distributions
      • 5.3. Installing additional Python packages
      • 5.4. GUI programming
      • 5.5. Advanced topics
        • 5.5.1. Installing free-threaded binaries
        • 5.5.2. Installing using the command line
        • 5.5.3. Distributing Python applications
        • 5.5.4. App Store compliance
      • 5.6. Other resources
    • 6. Using Python on Android
      • 6.1. Adding Python to an Android app
      • 6.2. Building a Python package for Android
    • 7. Using Python on iOS
      • 7.1. Python at runtime on iOS
        • 7.1.1. iOS version compatibility
        • 7.1.2. Platform identification
        • 7.1.3. Standard library availability
        • 7.1.4. Binary extension modules
        • 7.1.5. Compiler stub binaries
      • 7.2. Installing Python on iOS
        • 7.2.1. Tools for building iOS apps
        • 7.2.2. Adding Python to an iOS project
        • 7.2.3. Testing a Python package
      • 7.3. App Store Compliance
        • 7.3.1. Incompatible code in the standard library
        • 7.3.2. Privacy manifests
    • 8. Editors and IDEs
      • 8.1. IDLE — Python editor and shell
      • 8.2. Other Editors and IDEs
  • The Python Language Reference
    • 1. Introduction
      • 1.1. Alternate Implementations
      • 1.2. Notation
        • 1.2.1. Lexical and Syntactic definitions
    • 2. Lexical analysis
      • 2.1. Line structure
        • 2.1.1. Logical lines
        • 2.1.2. Physical lines
        • 2.1.3. Comments
        • 2.1.4. Encoding declarations
        • 2.1.5. Explicit line joining
        • 2.1.6. Implicit line joining
        • 2.1.7. Blank lines
        • 2.1.8. Indentation
        • 2.1.9. Whitespace between tokens
        • 2.1.10. End marker
      • 2.2. Other tokens
      • 2.3. Names (identifiers and keywords)
        • 2.3.1. Keywords
        • 2.3.2. Soft Keywords
        • 2.3.3. Reserved classes of identifiers
        • 2.3.4. Non-ASCII characters in names
      • 2.4. Literals
      • 2.5. String and Bytes literals
        • 2.5.1. Triple-quoted strings
        • 2.5.2. String prefixes
        • 2.5.3. Formal grammar
        • 2.5.4. Escape sequences
          • 2.5.4.1. Ignored end of line
          • 2.5.4.2. Escaped characters
          • 2.5.4.3. Octal character
          • 2.5.4.4. Hexadecimal character
          • 2.5.4.5. Named Unicode character
          • 2.5.4.6. Hexadecimal Unicode characters
          • 2.5.4.7. Unrecognized escape sequences
        • 2.5.5. Bytes literals
        • 2.5.6. Raw string literals
        • 2.5.7. f-strings
        • 2.5.8. t-strings
        • 2.5.9. Formal grammar for f-strings
      • 2.6. Numeric literals
        • 2.6.1. Integer literals
        • 2.6.2. Floating-point literals
        • 2.6.3. Imaginary literals
      • 2.7. Operators and delimiters
    • 3. Data model
      • 3.1. Objects, values and types
      • 3.2. The standard type hierarchy
        • 3.2.1. None
        • 3.2.2. NotImplemented
        • 3.2.3. Ellipsis
        • 3.2.4. numbers.Number
          • 3.2.4.1. numbers.Integral
          • 3.2.4.2. numbers.Real (float)
          • 3.2.4.3. numbers.Complex (complex)
        • 3.2.5. Sequences
          • 3.2.5.1. Immutable sequences
          • 3.2.5.2. Mutable sequences
        • 3.2.6. Set types
        • 3.2.7. Mappings
          • 3.2.7.1. Dictionaries
          • 3.2.7.2. Frozen dictionaries
        • 3.2.8. Callable types
          • 3.2.8.1. User-defined functions
            • 3.2.8.1.1. Special read-only attributes
            • 3.2.8.1.2. Special writable attributes
          • 3.2.8.2. Instance methods
          • 3.2.8.3. Generator functions
          • 3.2.8.4. Coroutine functions
          • 3.2.8.5. Asynchronous generator functions
          • 3.2.8.6. Built-in functions
          • 3.2.8.7. Built-in methods
          • 3.2.8.8. Classes
          • 3.2.8.9. Class Instances
        • 3.2.9. Modules
          • 3.2.9.1. Import-related attributes on module objects
          • 3.2.9.2. Other writable attributes on module objects
          • 3.2.9.3. Module dictionaries
        • 3.2.10. Custom classes
          • 3.2.10.1. Special attributes
          • 3.2.10.2. Special methods
        • 3.2.11. Class instances
          • 3.2.11.1. Special attributes
        • 3.2.12. I/O objects (also known as file objects)
        • 3.2.13. Internal types
          • 3.2.13.1. Code objects
            • 3.2.13.1.1. Special read-only attributes
            • 3.2.13.1.2. Methods on code objects
          • 3.2.13.2. Frame objects
            • 3.2.13.2.1. Special read-only attributes
            • 3.2.13.2.2. Special writable attributes
            • 3.2.13.2.3. Frame object methods
          • 3.2.13.3. Traceback objects
          • 3.2.13.4. Slice objects
          • 3.2.13.5. Static method objects
          • 3.2.13.6. Class method objects
      • 3.3. Special method names
        • 3.3.1. Basic customization
        • 3.3.2. Customizing attribute access
          • 3.3.2.1. Customizing module attribute access
          • 3.3.2.2. Implementing Descriptors
          • 3.3.2.3. Invoking Descriptors
          • 3.3.2.4. __slots__
        • 3.3.3. Customizing class creation
          • 3.3.3.1. Metaclasses
          • 3.3.3.2. Resolving MRO entries
          • 3.3.3.3. Determining the appropriate metaclass
          • 3.3.3.4. Preparing the class namespace
          • 3.3.3.5. Executing the class body
          • 3.3.3.6. Creating the class object
          • 3.3.3.7. Uses for metaclasses
        • 3.3.4. Customizing instance and subclass checks
        • 3.3.5. Emulating generic types
          • 3.3.5.1. The purpose of __class_getitem__
          • 3.3.5.2. __class_getitem__ versus __getitem__
        • 3.3.6. Emulating callable objects
        • 3.3.7. Emulating container types
        • 3.3.8. Emulating numeric types
        • 3.3.9. With Statement Context Managers
        • 3.3.10. Customizing positional arguments in class pattern matching
        • 3.3.11. Emulating buffer types
        • 3.3.12. Annotations
        • 3.3.13. Special method lookup
      • 3.4. Coroutines
        • 3.4.1. Awaitable Objects
        • 3.4.2. Coroutine Objects
        • 3.4.3. Asynchronous Iterators
        • 3.4.4. Asynchronous Context Managers
    • 4. Execution model
      • 4.1. Structure of a program
      • 4.2. Naming and binding
        • 4.2.1. Binding of names
        • 4.2.2. Resolution of names
        • 4.2.3. Annotation scopes
        • 4.2.4. Lazy evaluation
        • 4.2.5. Builtins and restricted execution
        • 4.2.6. Interaction with dynamic features
      • 4.3. Exceptions
      • 4.4. Runtime Components
        • 4.4.1. General Computing Model
        • 4.4.2. Python Runtime Model
    • 5. The import system
      • 5.1. importlib
      • 5.2. Packages
        • 5.2.1. Regular packages
        • 5.2.2. Namespace packages
      • 5.3. Searching
        • 5.3.1. The module cache
        • 5.3.2. Finders and loaders
        • 5.3.3. Import hooks
        • 5.3.4. The meta path
      • 5.4. Loading
        • 5.4.1. Loaders
        • 5.4.2. Submodules
        • 5.4.3. Module specs
        • 5.4.4. __path__ attributes on modules
        • 5.4.5. Module reprs
        • 5.4.6. Cached bytecode invalidation
      • 5.5. The Path Based Finder
        • 5.5.1. Path entry finders
        • 5.5.2. Path entry finder protocol
      • 5.6. Replacing the standard import system
      • 5.7. Package Relative Imports
      • 5.8. Special considerations for __main__
        • 5.8.1. __main__.__spec__
      • 5.9. References
    • 6. Expressions
      • 6.1. Arithmetic conversions
      • 6.2. Atoms
        • 6.2.1. Built-in constants
        • 6.2.2. Identifiers (Names)
          • 6.2.2.1. Private name mangling
        • 6.2.3. Literals
          • 6.2.3.1. Literals and object identity
          • 6.2.3.2. String literal concatenation
        • 6.2.4. Parenthesized groups
        • 6.2.5. Container displays
          • 6.2.5.1. List displays
          • 6.2.5.2. Set displays
          • 6.2.5.3. Tuple displays
          • 6.2.5.4. Dictionary displays
        • 6.2.6. Comprehensions
          • 6.2.6.1. Filtering in comprehensions
          • 6.2.6.2. Complex comprehensions
          • 6.2.6.3. Unpacking in comprehensions
          • 6.2.6.4. Asynchronous comprehensions
          • 6.2.6.5. Formal grammar for comprehensions
        • 6.2.7. Generator expressions
        • 6.2.8. Yield expressions
          • 6.2.8.1. Examples
          • 6.2.8.2. Asynchronous generator functions
      • 6.3. Primaries
        • 6.3.1. Attribute references
        • 6.3.2. Subscriptions and slicings
          • 6.3.2.1. Slicings
          • 6.3.2.2. Comma-separated subscripts
          • 6.3.2.3. “Starred” subscriptions
          • 6.3.2.4. Formal subscription grammar
        • 6.3.3. Calls
      • 6.4. Await expression
      • 6.5. The power operator
      • 6.6. Unary arithmetic and bitwise operations
      • 6.7. Binary arithmetic operations
      • 6.8. Shifting operations
      • 6.9. Binary bitwise operations
      • 6.10. Comparisons
        • 6.10.1. Value comparisons
        • 6.10.2. Membership test operations
        • 6.10.3. Identity comparisons
      • 6.11. Boolean operations
      • 6.12. Assignment expressions
      • 6.13. Conditional expressions
      • 6.14. Lambdas
      • 6.15. Expression lists
        • 6.15.1. Iterable unpacking
      • 6.16. Evaluation order
      • 6.17. Operator precedence
    • 7. Simple statements
      • 7.1. Expression statements

        [Page truncated to keep GeezerVison snappy.]

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.