Python Dokumentation Inhalte¶
- Neuigkeiten in Python
- Was ist neu in Python 3.15
- Zusammenfassung – Highlights des Releases
- Neue Features
- PEP 810: Explizite Lazy Imports
- PEP 814: Neuer integrierter Typ frozendict
- PEP 661: Neuer integrierter Typ sentinel
- PEP 799: Ein eigenes Profiling-Paket
- Tachyon: Hochfrequenter statistischer Sampling-Profiler
- PEP 831: Frame-Pointer standardmäßig aktiviert
- PEP 798: Entpacken in Comprehensions
- PEP 829: Startkonfigurationsdateien für Pakete
- PEP 803: Stabile ABI für Builds mit freien Threads
- PEP 788: Schutz der C-API vor der Finalisierung des Interpreters
- Verbesserte Fehlermeldungen
- Weitere Sprachänderungen
- Interaktive Standard-Shell
- Neue Module
- Verbesserte Module
- argparse
- array
- ast
- asyncio
- base64
- binascii
- calendar
- collections
- concurrent.futures
- contextlib
- ctypes
- dataclasses
- dbm
- difflib
- 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
- 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
- Optimierungen
- Entfernt
- Als veraltet markiert
- Änderungen an der C-API
- Änderungen am Build
- Portierung auf Python 3.15
- Was ist neu in Python 3.14
- Zusammenfassung - Release Höhepunkte
- Neue Features
- PEP 649 & PEP 749: Verzögerte Auswertung von Annotationen
- PEP 734: Mehrere Interpreter in der Standardbibliothek
- PEP 750: Template-String-Literale
- PEP 768: Sichere Schnittstelle für externe Debugger
- Eine neue Art von Interpreter
- Verbesserungen im Free-Threaded-Modus
- Verbesserte Fehlermeldungen
- PEP 784: Zstandard-Unterstützung in der Standardbibliothek
- Möglichkeiten zur Introspektion in asyncio
- Nebenläufigkeitssichere Steuerung von Warnungen
- Weitere Sprachänderungen
- Neue Module
- Verbesserte Module
- argparse
- ast
- asyncio
- Kalender
- 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
- Optimierungen
- Entfernt
- Als veraltet markiert
- CPython Bytecode Änderungen
- Änderungen an der C-API
- Änderungen am Build
- Portierung auf Python 3.14
- Erwähnenswerte Änderungen in 3.14.5
- Was ist neu in Python 3.13
- Zusammenfassung – Highlights des Releases
- Neue Funktionen
- Andere sprachliche Änderungen
- Neue Module
- Verbesserte Module
- argparse
- Array
- ast
- asyncio
- base64
- compileall
- concurrent.futures
- configparser
- copy
- ctypes
- dbm
- dis
- doctest
- 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
- Optimierungen
- Entfernte Module und APIs
- Neu als veraltet markiert
- Änderungen am Bytecode von CPython
- C API Änderungen
- Build Änderungen
- Portierung auf Python 3.13
- Änderungen an den Regressionstests
- Was ist Neu in Python 3.12
- Zusammenfassung - Release Höhepunkte
- Neue Funktionen
- PEP 695: Syntax für Typparameter
- PEP 701: Syntaktische Formalisierung von f-Strings
- PEP 684: Ein GIL je Interpreter
- PEP 669: Überwachung mit geringer Auswirkung für CPython
- PEP 688: Das Pufferprotokoll aus Python zugänglich machen
- PEP 709: Comprehensions werden eingebettet
- Verbesserte Fehlermeldungen
- Neue Funktionen im Zusammenhang mit Typ-Hinweisen
- Andere sprachliche Änderungen
- Neue Module
- Verbesserte Module
- Optimierungen
- CPython Bytecode Änderungen
- Demos und Werkzeuge
- Als veraltet markiert
- Entfernt
- Portierung auf Python 3.12
- Build Änderungen
- C API Änderungen
- What’s New In Python 3.11
- Zusammenfassung - Release Höhepunkte
- Neue Funktionen
- Neue Funktionen im Zusammenhang mit Typ-Hinweisen
- Andere sprachliche Änderungen
- Other CPython Implementation Changes
- Neue Module
- Verbesserte Module
- Optimierungen
- Faster CPython
- CPython Bytecode Änderungen
- Als veraltet markiert
- Pending Removal in Python 3.12
- Entfernt
- Porting to Python 3.11
- Build Änderungen
- C API Änderungen
- Notable changes in 3.11.4
- Notable changes in 3.11.5
- Was ist neu in Python 3.10
- Zusammenfassung - Release Höhepunkte
- Neue Funktionen
- Kontextmanager in Klammern
- Bessere Fehlermeldungen
- PEP 626: Genaue Zeilennummern für Debugger und andere Werkzeuge
- PEP 634: Strukturelles Mustervergleichen
- Optionale
EncodingWarningund die Optionencoding="locale"
- Neue Funktionen im Zusammenhang mit Typ-Hinweisen
- Andere sprachliche Änderungen
- Neue Module
- Verbesserte Module
- asyncio
- argparse
- Array
- asynchat, asyncore, smtpd
- base64
- bdb
- bisect
- codecs
- collections.abc
- contextlib
- curses
- dataclasses
- distutils
- doctest
- encodings
- enum
- fileinput
- faulthandler
- gc
- glob
- hashlib
- hmac
- IDLE und 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
- Optimierungen
- Als veraltet markiert
- Entfernt
- Portierung auf Python 3.10
- CPython Bytecode Änderungen
- Build Änderungen
- C API Änderungen
- Erwähnenswertes Sicherheitsfeature in 3.10.7
- Erwähnenswertes Sicherheitsfeature in 3.10.8
- Erwähnenswerte Änderungen in 3.10.12
- What’s New In Python 3.9
- Zusammenfassung - Release Höhepunkte
- You should check for DeprecationWarning in your code
- Neue Funktionen
- Andere sprachliche Änderungen
- Neue Module
- Verbesserte Module
- Optimierungen
- Als veraltet markiert
- Entfernt
- Porting to Python 3.9
- Build Änderungen
- C API Änderungen
- Notable changes in Python 3.9.1
- Notable changes in Python 3.9.2
- Notable changes in Python 3.9.3
- Notable changes in Python 3.9.5
- Notable security feature in 3.9.14
- Notable changes in 3.9.17
- What’s New In Python 3.8
- Zusammenfassung - Release Höhepunkte
- Neue Funktionen
- Zuweisungsausdrücke
- 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
- Andere sprachliche Änderungen
- Neue Module
- Verbesserte Module
- 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
- Optimierungen
- Build and C API Changes
- Als veraltet markiert
- API and Feature Removals
- Porting to Python 3.8
- 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
- Notable changes in Python 3.8.10
- Notable changes in Python 3.8.12
- Notable security feature in 3.8.14
- Notable changes in 3.8.17
- What’s New In Python 3.7
- Summary – Release Highlights
- Neue Funktionen
- 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
typingmodule and Generic Types - PEP 552: Hash-based .pyc Files
- PEP 545: Python Documentation Translations
- Python Development Mode (-X dev)
- Andere sprachliche Änderungen
- Neue Module
- Verbesserte Module
- argparse
- asyncio
- binascii
- Kalender
- 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 Änderungen
- Build Änderungen
- Optimierungen
- Other CPython Implementation Changes
- Deprecated Python Behavior
- Deprecated Python modules, functions and methods
- 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
- 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
- Zusammenfassung - Release Höhepunkte
- Neue Funktionen
- 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
- Andere sprachliche Änderungen
- Neue Module
- Verbesserte Module
- Array
- ast
- asyncio
- binascii
- cmath
- collections
- concurrent.futures
- contextlib
- datetime
- decimal
- distutils
- 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
- Optimierungen
- Build and C API Changes
- Other Improvements
- Als veraltet markiert
- Entfernt
- Porting to Python 3.6
- Notable changes in Python 3.6.2
- 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
- Zusammenfassung - Release Höhepunkte
- Neue Funktionen
- 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
- Andere sprachliche Änderungen
- Neue Module
- Verbesserte Module
- argparse
- asyncio
- bz2
- cgi
- cmath
- code
- collections
- collections.abc
- compileall
- concurrent.futures
- configparser
- contextlib
- csv
- curses
- dbm
- difflib
- distutils
- doctest
- 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
- 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
- Optimierungen
- Build and C API Changes
- Als veraltet markiert
- Entfernt
- Porting to Python 3.5
- Notable changes in Python 3.5.4
- What’s New In Python 3.4
- Summary – Release Highlights
- Neue Funktionen
- Neue Module
- Verbesserte Module
- abc
- aifc
- argparse
- audioop
- base64
- collections
- colorsys
- contextlib
- dbm
- dis
- doctest
- 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
- Als veraltet markiert
- Entfernt
- Porting to Python 3.4
- Changed in 3.4.3
- What’s New In Python 3.3
- Zusammenfassung - Release Höhepunkte
- PEP 405: Virtual Environments
- PEP 420: Implicit Namespace Packages
- PEP 3118: New memoryview implementation and buffer protocol documentation
- PEP 393: Flexible String Representation
- 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
- Using importlib as the Implementation of Import
- Andere sprachliche Änderungen
- A Finer-Grained Import Lock
- Builtin functions and types
- Neue Module
- Verbesserte Module
- abc
- Array
- base64
- binascii
- bz2
- codecs
- collections
- contextlib
- crypt
- curses
- datetime
- decimal
- 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
- Optimierungen
- Build and C API Changes
- Als veraltet markiert
- Porting to Python 3.3
- 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.futuresmodule - PEP 3147: PYC Repository Directories
- PEP 3149: ABI Version Tagged .so Files
- PEP 3333: Python Web Server Gateway Interface v1.0.1
- Andere sprachliche Änderungen
- New, Improved, and Deprecated Modules
- 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
- Optimierungen
- Unicode
- Codecs
- Documentation
- IDLE
- Code Repository
- Build and C API Changes
- Porting to Python 3.2
- What’s New In Python 3.1
- What’s New In 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
- Andere sprachliche Änderungen
- New and Improved Modules
- Build and C API Changes
- 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
- PEP 476: Enabling certificate verification by default for stdlib http clients
- PEP 493: HTTPS verification migration tools for Python 2.7
- New
make regen-allbuild target - Removal of
make touchbuild target
- Acknowledgements
- What’s New in Python 2.6
- Python 3.0
- Changes to the Development Process
- PEP 343: The ‚with‘ statement
- PEP 366: Explicit Relative Imports From a Main Module
- PEP 370: Per-user
site-packagesDirectory - PEP 371: The
multiprocessingPackage - PEP 3101: Advanced String Formatting
- PEP 3105:
printAs 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
- Andere sprachliche Änderungen
- New and Improved Modules
- Deprecations and Removals
- Build and C API Changes
- 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
- PEP 352: Exceptions as New-Style Classes
- PEP 353: Using ssize_t as the index type
- PEP 357: The ‚__index__‘ method
- Andere sprachliche Änderungen
- New, Improved, and Removed Modules
- Build and C API 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
- PEP 328: Multi-line Imports
- PEP 331: Locale-Independent Float/String Conversions
- Andere sprachliche Änderungen
- New, Improved, and Deprecated Modules
- Build and C API 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
- Andere sprachliche Änderungen
- New, Improved, and Deprecated Modules
- Pymalloc: A Specialized Object Allocator
- Build and C API Changes
- Other Changes and Fixes
- Porting to Python 2.3
- Acknowledgements
- What’s New in Python 2.2
- Einführung
- PEPs 252 and 253: Type and Class Changes
- 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
- Einführung
- 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
- Einführung
- What About Python 1.6?
- New Development Process
- Unicode
- List Comprehensions
- Augmented Assignment
- String Methods
- Garbage Collection of Cycles
- Other Core Changes
- Porting to 2.0
- Extending/Embedding Changes
- Distutils: Making Modules Easy to Install
- XML Modules
- Module changes
- New modules
- IDLE Improvements
- Deleted and Deprecated Modules
- Acknowledgements
- Änderungsbericht
- Python next
- Python 3.15.1 final
- Python 3.15.0 final
- Python 3.15.0 release candidate 3
- Python 3.15.0 release candidate 2
- Python 3.15.0 release candidate 1
- Python 3.15.0 beta 4
- Python 3.15.0 beta 3
- Python 3.15.0 beta 2
- Python 3.15.0 beta 1
- Python 3.15.0 alpha 8
- Python 3.15.0 alpha 7
- Python 3.15.0 alpha 6
- Python 3.15.0 alpha 5
- Python 3.15.0 alpha 4
- Python 3.15.0 alpha 3
- Python 3.15.0 alpha 2
- 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
- Python 3.14.0 alpha 7
- Python 3.14.0 alpha 6
- Python 3.14.0 alpha 5
- Python 3.14.0 alpha 4
- Python 3.14.0 alpha 3
- Python 3.14.0 alpha 2
- Python 3.14.0 alpha 1
- Python 3.13.0 beta 1
- Python 3.13.0 alpha 6
- Python 3.13.0 alpha 5
- Python 3.13.0 alpha 4
- Python 3.13.0 alpha 3
- Python 3.13.0 alpha 2
- Python 3.13.0 alpha 1
- Python 3.12.0 beta 1
- Python 3.12.0 alpha 7
- Python 3.12.0 alpha 6
- Python 3.12.0 alpha 5
- Python 3.12.0 alpha 4
- Python 3.12.0 alpha 3
- Python 3.12.0 alpha 2
- 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
- Python 3.11.0 alpha 7
- Python 3.11.0 alpha 6
- Python 3.11.0 alpha 5
- Python 3.11.0 alpha 4
- Python 3.11.0 alpha 3
- Python 3.11.0 alpha 2
- 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
- Python 3.10.0 alpha 7
- Python 3.10.0 alpha 6
- Python 3.10.0 alpha 5
- Python 3.10.0 alpha 4
- Python 3.10.0 alpha 3
- Python 3.10.0 alpha 2
- 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
- Python 3.9.0 alpha 6
- Python 3.9.0 alpha 5
- Python 3.9.0 alpha 4
- Python 3.9.0 alpha 3
- Python 3.9.0 alpha 2
- Python 3.9.0 alpha 1
- Python 3.8.0 beta 1
- Python 3.8.0 alpha 4
- Python 3.8.0 alpha 3
- Python 3.8.0 alpha 2
- Python 3.8.0 alpha 1
- Python 3.7.0 final
- Python 3.7.0 release candidate 1
- Python 3.7.0 beta 5
- Python 3.7.0 beta 4
- Python 3.7.0 beta 3
- Python 3.7.0 beta 2
- Python 3.7.0 beta 1
- Python 3.7.0 alpha 4
- Python 3.7.0 alpha 3
- Python 3.7.0 alpha 2
- Python 3.7.0 alpha 1
- Python 3.6.6 final
- Python 3.6.6 release candidate 1
- Python 3.6.5 final
- Python 3.6.5 release candidate 1
- Python 3.6.4 final
- Python 3.6.4 release candidate 1
- Python 3.6.3 final
- Python 3.6.3 release candidate 1
- Python 3.6.2 final
- Python 3.6.2 release candidate 2
- Python 3.6.2 release candidate 1
- Python 3.6.1 final
- Python 3.6.1 release candidate 1
- Python 3.6.0 final
- Python 3.6.0 release candidate 2
- Python 3.6.0 release candidate 1
- Python 3.6.0 beta 4
- Python 3.6.0 beta 3
- Python 3.6.0 beta 2
- Python 3.6.0 beta 1
- Python 3.6.0 alpha 4
- Python 3.6.0 alpha 3
- Python 3.6.0 alpha 2
- Python 3.6.0 alpha 1
- Python 3.5.5 final
- Python 3.5.5 release candidate 1
- Python 3.5.4 final
- Python 3.5.4 release candidate 1
- Python 3.5.3 final
- Python 3.5.3 release candidate 1
- Python 3.5.2 final
- Python 3.5.2 release candidate 1
- Python 3.5.1 final
- Python 3.5.1 release candidate 1
- Python 3.5.0 final
- Python 3.5.0 release candidate 4
- Python 3.5.0 release candidate 3
- Python 3.5.0 release candidate 2
- Python 3.5.0 release candidate 1
- Python 3.5.0 beta 4
- Python 3.5.0 beta 3
- Python 3.5.0 beta 2
- Python 3.5.0 beta 1
- Python 3.5.0 alpha 4
- Python 3.5.0 alpha 3
- Python 3.5.0 alpha 2
- Python 3.5.0 alpha 1
- Was ist neu in Python 3.15
- Das Python-Tutorial
- 1. Appetitanreger
- 2. Verwendung des Python-Interpreters
- 3. Eine informelle Einführung in Python
- 4. Mehr Werkzeuge zur Ablaufsteuerung
- 4.1.
if-Anweisungen - 4.2.
for-Anweisungen - 4.3. Die Funktion
range() - 4.4.
break- undcontinue-Anweisungen - 4.5.
else-Klauseln bei Schleifen - 4.6.
pass-Anweisungen - 4.7.
match-Anweisungen - 4.8. Funktionen definieren
- 4.9. Mehr zum Definieren von Funktionen
- 4.10. Intermezzo: Programmierstil
- 4.1.
- 5. Datenstrukturen
- 6. Module
- 7. Eingabe und Ausgabe
- 8. Fehler und Ausnahmen
- 8.1. Syntax Fehler
- 8.2. Ausnahmen
- 8.3. Behandlung von Ausnahmen
- 8.4. Auslösen von Ausnahmen
- 8.5. Verkettung von Ausnahmen
- 8.6. Benutzerdefinierte Ausnahmen
- 8.7. Definition von Bereinigungsaktionen
- 8.8. Vordefinierte Bereinigungsaktionen
- 8.9. Auslösen und Behandeln mehrerer unzusammenhängender Ausnahmen
- 8.10. Anreicherung von Ausnahmen mit Notizen
- 9. Klassen
- 10. Ein kurzer Überblick über die Standardbibliothek
- 10.1. Betriebssystemschnittstelle
- 10.2. Datei-Platzhalter
- 10.3. Befehlszeilenargumente
- 10.4. Umleitung der Fehlerausgabe und Beendigung des Programms
- 10.5. Zeichenfolgenabgleich
- 10.6. Mathematik
- 10.7. Internetzugang
- 10.8. Termine und Uhrzeiten
- 10.9. Datenkomprimierung
- 10.10. Leistungsmessung
- 10.11. Qualitätskontrolle
- 10.12. Batterien im Lieferumfang enthalten
- 11. Ein kurzer Überblick über die Standardbibliothek – Teil II
- 12. Virtuelle Umgebungen und Pakete
- 13. Was nun?
- 14. Interaktive Eingabebearbeitung und Historienersetzung
- 15. Gleitkommaarithmetik: Probleme und Einschränkungen
- 16. Anhang
- Python einrichten und verwenden
- 1. Befehlszeile und Umgebung
- 2. Python unter Unix Plattformen verwenden
- 3. Python konfigurieren
- 3.1. Voraussetzungen für den Build
- 3.2. Erzeugte Dateien
- 3.3. Optionen von configure
- 3.3.1. Allgemeine Optionen
- 3.3.2. Optionen des C-Compilers
- 3.3.3. Optionen des Linkers
- 3.3.4. Optionen für Abhängigkeiten von Dritten
- 3.3.5. WebAssembly-Optionen
- 3.3.6. Optionen für die Installation
- 3.3.7. Optionen für die Leistung
- 3.3.8. Debug-Build von Python
- 3.3.9. Debug-Optionen
- 3.3.10. Optionen des Linkers
- 3.3.11. Optionen für Bibliotheken
- 3.3.12. Sicherheitsoptionen
- 3.3.13. macOS-Optionen
- 3.3.14. iOS-Optionen
- 3.3.15. Optionen für das Cross-Kompilieren
- 3.4. Das Bausystem von Python
- 3.5. Compiler- und Linker-Flags
- 4. Python unter Windows verwenden
- 4.1. Python Install Manager
- 4.1.1. Installation
- 4.1.2. Grundlegende Verwendung
- 4.1.3. Hilfe zu den Befehlen
- 4.1.4. Runtimes auflisten
- 4.1.5. Runtimes installieren
- 4.1.6. Offline-Installationen
- 4.1.7. Runtimes deinstallieren
- 4.1.8. Konfiguration
- 4.1.9. Shebang-Zeilen
- 4.1.10. Fortgeschrittene Installation
- 4.1.11. Administrative Konfiguration
- 4.1.12. Free-Threading-Binärdateien installieren
- 4.1.13. Index-Signaturen
- 4.1.14. Proxy-Einstellungen
- 4.1.15. Fehlersuche
- 4.2. Das einbettbare Paket
- 4.3. Die Pakete von nuget.org
- 4.4. Alternative Distributionen
- 4.5. Unterstützte Windows-Versionen
- 4.6. Die Beschränkung durch MAX_PATH aufheben
- 4.7. UTF-8-Modus
- 4.8. Module finden
- 4.9. Zusätzliche Module
- 4.10. Python unter Windows kompilieren
- 4.11. Das vollständige Installationsprogramm (veraltet)
- 4.12. Python-Starter für Windows (veraltet)
- 4.1. Python Install Manager
- 5. Python unter macOS verwenden
- 6. Python unter Android verwenden
- 7. Python unter iOS verwenden
- 8. Editoren und IDEs
- Die Python-Sprachreferenz
- 1. Einführung
- 2. Lexical analysis
- 2.1. Line structure
- 2.2. Other tokens
- 2.3. Names (identifiers and keywords)
- 2.4. Literale
- 2.5. String and Bytes literals
- 2.6. Numeric literals
- 2.7. Operators and delimiters
- 3. Datenmodell
- 3.1. Objekte, Werte und Typen
- 3.2. Die Standardtyp-Hierarchie
- 3.2.1. Keine
- 3.2.2. Nicht implementiert
- 3.2.3. Auslassungspunkte
- 3.2.4.
numbers.Number - 3.2.5. Sequenzen
- 3.2.6. Mengenarten
- 3.2.7. Zuordnungen
- 3.2.8. Aufrufbare Typen
- 3.2.9. Module
- 3.2.10. Benutzerdefinierte Klassen
- 3.2.11. Klasseninstanzen
- 3.2.12. E/A-Objekte (auch als Datei-Objekte bezeichnet)
- 3.2.13. Interne Typen
- 3.3. Spezielle Methodennamen
- 3.3.1. Grundlegende Anpassungen
- 3.3.2. Anpassung des Zugriffs auf Attribute
- 3.3.3. Anpassung der Klassenerstellung
- 3.3.4. Anpassung der Instanz- und Unterklassenprüfungen
- 3.3.5. Emulation generischer Typen
- 3.3.6. Aufrufbare Objekte emulieren
- 3.3.7. Containertypen emulieren
- 3.3.8. Emulation numerischer Datentypen
- 3.3.9. Mit Statement-Kontextmanagern
- 3.3.10. Anpassen von Positionsargumenten beim Klassenmusterabgleich
- 3.3.11. Puffertypen emulieren
- 3.3.12. Anmerkungen
- 3.3.13. Suche nach speziellen Methoden
- 3.4. Coroutinen
- 4. Ausführungsmodell
- 5. Das Importsystem
- 6. Ausdrücke
- 6.1. Arithmetische Umrechnungen
- 6.2. Atoms
- 6.3. Primäre Funktionen
- 6.4. Ausdruck „Await“
- 6.5. Der Potenz Operator (Power Operator)
- 6.6. Unäre Arithmetik und bitweise Operationen
- 6.7. Binäre arithmetische Operationen
- 6.8. Verschiebungsoperationen
- 6.9. Binäre bitweise Operationen
- 6.10. Vergleiche
- 6.11. Boolesche Operationen
- 6.12. Zuweisungsausdrücke
- 6.13. Bedingte Ausdrücke
- 6.14. Lambdas
- 6.15. Ausdruckslisten
- 6.16. Bewertungsreihenfolge
- 6.17. Reihenfolge der Rechenoperatoren
- 7. Einfache Anweisungen
- 7.1. Ausdrucksanweisungen
- 7.2. Zuweisungsanweisungen
- 7.3. Die
assertAnweisung - 7.4. Die
passAnweisung - 7.5. Die
delAnweisung - 7.6. Die
returnAnweisung - 7.7. Die
yieldAnweisung - 7.8. Die
raiseAnweisung - 7.9. Die Erklärung der
breakAnweisung. - 7.10. Die
continueAnweisung - 7.11. Die
importAnweisung - 7.12. Die Erklärung der
global. - 7.13. Die
nonlocalAnweisung - 7.14. Die
typeAnweisung
- 8. Zusammengesetzte Anweisungen
- 8.1. Die
ifAnweisung - 8.2. Die Erklärung der
while. - 8.3. Die
forAnweisung - 8.4. Die
tryAnweisung - 8.5. Die Erklärung von
with. - 8.6. Die Erklärung der
matchAnweisung - 8.7. Funktionsdefinitionen
- 8.8. Klassendefinitionen
- 8.9. Coroutinen
- 8.10. Typenparameterlisten
- 8.11. Anmerkungen / Annotations
- 8.1. Die
- 9. Top-level components
- 10. Vollständige Grammatikspezifikation
- Referenz der integrierten Python-Objekte
- Integrierte Typen
- Wahrheitswert-Prüfung
- Boolesche Operationen —
and,or,not - Vergleiche
- Numerische Typen —
int,float,complex - Boolescher Typ –
bool - Iteration-related types
- Sequenztypen –
list,tuple,range - Zusammenfassung der Methoden von Text- und Binärsequenztypen
- Textsequenztyp –
str - Binäre Sequenztypen –
bytes,bytearray,memoryview - Mengen-Typen –
set,frozenset - Mapping-Typen –
dict,frozendict - Kontext-Manager-Typen
- Typ-Annotations-Typen – Generic Alias, Union
- Andere integrierte Typen
- Spezielle Attribute
- Längenbeschränkung bei der Ganzzahl-String-Konvertierung
- Integrierte Konstanten
- Integrierte Funktionen
- Integrierte Exceptions
- Garantien zur Threadsicherheit
- Zeitkomplexität von Operationen auf eingebauten Typen
- Integrierte Typen
- The Python standard library
- Einführung
- Text Processing Services
string— Allgemeine Zeichenkettenoperationenstring.templatelib— Support for template string literalsre— Regular expression operationsdifflib— Helpers for computing deltastextwrap— Text wrapping and fillingunicodedata— Unicode Databasestringprep— Internet String Preparationreadline— GNU readline interfacerlcompleter— Completion function for GNU readline
- Binary Data Services
struct— Interpret bytes as packed binary datacodecs— Codec registry and base classes
- Datentypen
datetime— Basic date and time typeszoneinfo— IANA time zone supportcalendar— Allgemeine kalenderbezogene Funktionencollections— Container datatypescollections.abc— Abstract Base Classes for Containersheapq— Heap queue algorithmbisect— Array bisection algorithmarray— Efficient arrays of numeric valuesweakref— Weak referencestypes— Dynamic type creation and names for built-in typescopy— Shallow and deep copy operationspprint— Data pretty printerreprlib— Alternaterepr()implementationenum— Support for enumerationsgraphlib— Functionality to operate with graph-like structures
- Numerische und mathematische Module
numbers— Numeric abstract base classesmath— Mathematical functionsmath.integer— mathematische Funktionen speziell für ganze Zahlencmath— Mathematical functions for complex numbersdecimal— Decimal fixed-point and floating-point arithmeticfractions— Rational numbersrandom— Generate pseudo-random numbersstatistics— Mathematical statistics functions
- Module zur funktionalen Programmierung
- File and Directory Access
pathlib— Object-oriented filesystem pathsos.path— Common pathname manipulationsstat— Interpretingstat()resultsfilecmp— File and Directory Comparisonstempfile— Generate temporary files and directoriesglob— Unix style pathname pattern expansionfnmatch— Unix filename pattern matchinglinecache— Random access to text linesshutil— High-level file operations
- Datenpersistenz
pickle— Python object serializationcopyreg— Registerpicklesupport functionsshelve— Python object persistencemarshal— Internal Python object serializationdbm— Interfaces to Unix „databases“sqlite3— DB-API 2.0 interface for SQLite databases- Tutorial
- Reference
- How-to guides
- How to use placeholders to bind values in SQL queries
- How to adapt custom Python types to SQLite values
- How to convert SQLite values to custom Python types
- Adapter and converter recipes
- How to use connection shortcut methods
- How to use the connection context manager
- How to work with SQLite URIs
- How to create and use row factories
- How to handle non-UTF-8 text encodings
- Erklärung
- Data Compression and Archiving
- The
compressionpackage compression.zstd— Compression compatible with the Zstandard formatzlib— Compression compatible with gzipgzip— Support for gzip filesbz2— Support for bzip2 compressionlzma— Compression using the LZMA algorithmzipfile— Work with ZIP archivestarfile— Read and write tar archive files
- The
- File Formats
- Cryptographic Services
- Generic Operating System Services
os— Miscellaneous operating system interfacesio— Core tools for working with streamstime— Time access and conversionslogging— Logging facility for Pythonlogging.config— Logging configurationlogging.handlers— Logging handlersplatform— Access to underlying platform’s identifying dataerrno— Standard errno system symbolsctypes— A foreign function library for Python- ctypes tutorial
- Loading dynamic link libraries
- Accessing functions from loaded dlls
- Calling functions
- Fundamental data types
- Calling functions, continued
- Calling variadic functions
- Calling functions with your own custom data types
- Specifying the required argument types (function prototypes)
- Return types
- Passing pointers (or: passing parameters by reference)
- Structures and unions
- Structure/union layout, alignment and byte order
- Bit fields in structures and unions
- Arrays
- Pointers
- Thread safety without the GIL
- Type conversions
- Incomplete Types
- Callback functions
- Accessing values exported from dlls
- Surprises
- Variable-sized data types
- ctypes reference
- ctypes tutorial
- Command-line interface libraries
argparse— Parser for command-line options, arguments and subcommandsoptparse— Parser for command line options- Choosing an argument parsing library
- Einführung
- Background
- Tutorial
- Reference Guide
- Option Callbacks
- Defining a callback option
- How callbacks are called
- Raising errors in a callback
- Callback example 1: trivial callback
- Callback example 2: check option order
- Callback example 3: check option order (generalized)
- Callback example 4: check arbitrary condition
- Callback example 5: fixed arguments
- Callback example 6: variable arguments
- Extending
optparse - Ausnahmen
getpass— Portable password inputfileinput— Iterate over lines from multiple input streamscurses— Terminal handling for character-cell displayscurses.textpad— Text input widget for curses programscurses.ascii— Utilities for ASCII characterscurses.panel— A panel stack extension for cursescmd— Support for line-oriented command interpreters
- Concurrent Execution
threading— Thread-based parallelismmultiprocessing— Process-based parallelism- Einführung
- Reference
- Programming guidelines
- Beispiele
multiprocessing.shared_memory— Shared memory for direct access across processes- The
concurrentpackage concurrent.futures— Launching parallel tasksconcurrent.interpreters— Multiple interpreters in the same processsubprocess— Subprocess managementsched— Event schedulerqueue— A synchronized queue classcontextvars— Context Variables_thread— Low-level threading API
- Networking and Interprocess Communication
asyncio— Asynchronous I/O- Runners
- Coroutines and tasks
- Streams
- Synchronization Primitives
- Subprocesses
- Queues
- Ausnahmen
- Call graph introspection
- Command-line introspection tools
- Event loop
- Event loop methods
- Running and stopping the loop
- Scheduling callbacks
- Scheduling delayed callbacks
- Creating futures and tasks
- Opening network connections
- Creating network servers
- Transferring files
- TLS upgrade
- Watching file descriptors
- Working with socket objects directly
- DNS
- Working with pipes
- Unix signals
- Executing code in thread or process pools
- Error handling API
- Enabling debug mode
- Running subprocesses
- Callback handles
- Server objects
- Event loop implementations
- Beispiele
- Event loop methods
- Futures
- Transports and Protocols
- Policies
- Platform Support
- Extending
- High-level API Index
- Low-level API Index
- Developing with asyncio
- asyncio and free-threaded Python
socket— Low-level networking interfacessl— TLS/SSL wrapper for socket objectsselect— Waiting for I/O completionselectors— High-level I/O multiplexingsignal— Set handlers for asynchronous eventsmmap— Memory-mapped file support
- Verarbeitung von Internetdaten
email— An email and MIME handling packageemail.message: Representing an email messageemail.parser: Parsing email messagesemail.generator: Generating MIME documentsemail.policy: Policy Objectsemail.errors: Exception and Defect classesemail.headerregistry: Custom Header Objectsemail.contentmanager: Managing MIME Contentemail: Examplesemail.message.Message: Representing an email message using thecompat32APIemail.mime: Creating email and MIME objects from scratchemail.header: Internationalized headersemail.charset: Representing character setsemail.encoders: Encodersemail.utils: Miscellaneous utilitiesemail.iterators: Iterators
json— JSON encoder and decodermailbox— Manipulate mailboxes in various formatsmimetypes— Map filenames to MIME typesbase64— Base16, Base32, Base64, Base85 Data Encodingsbinascii— Convert between binary and ASCIIquopri— Encode and decode MIME quoted-printable data
- Structured Markup Processing Tools
html— HyperText Markup Language supporthtml.parser— Simple HTML and XHTML parserhtml.entities— Definitionen allgemeiner HTML-Entitäten- XML Processing Modules
xml.etree.ElementTree— The ElementTree XML APIxml.dom— The Document Object Model API- Module Contents
- Objects in the DOM
- DOMImplementation Objects
- Node Objects
- NodeList Objects
- DocumentType Objects
- Document Objects
- Element Objects
- Attr Objects
- NamedNodeMap Objects
- DocumentFragment Objects
- CharacterData Objects
- Comment Objects
- Text and CDATASection Objects
- ProcessingInstruction Objects
- Entity Objects
- Notation Objects
- Ausnahmen
- Conformance
xml.dom.minidom— Minimal DOM implementationxml.dom.pulldom— Support for building partial DOM treesxml.sax— Support for SAX2 parsersxml.sax.handler— Base classes for SAX handlersxml.sax.saxutils— SAX Utilitiesxml.sax.xmlreader— Interface for XML parsersxml.parsers.expat— Fast XML parsing using Expat
- Internet Protocols and Support
webbrowser— Convenient web-browser controllerwsgiref— WSGI Utilities and Reference Implementationurllib— URL handling modulesurllib.request— Extensible library for opening URLs- Request Objects
- OpenerDirector Objects
- BaseHandler Objects
- HTTPRedirectHandler Objects
- HTTPCookieProcessor Objects
- ProxyHandler Objects
- HTTPPasswordMgr Objects
- HTTPPasswordMgrWithPriorAuth Objects
- AbstractBasicAuthHandler Objects
- HTTPBasicAuthHandler Objects
- ProxyBasicAuthHandler Objects
- AbstractDigestAuthHandler Objects
- HTTPDigestAuthHandler Objects
- ProxyDigestAuthHandler Objects
- HTTPHandler Objects
- HTTPSHandler Objects
- FileHandler Objects
- DataHandler Objects
- FTPHandler Objects
- CacheFTPHandler Objects
- UnknownHandler Objects
- HTTPErrorProcessor Objects
- Beispiele
- Legacy interface
urllib.requestRestrictions
urllib.response— Response classes used by urlliburllib.parse— Parse URLs into componentsurllib.error— Exception classes raised by urllib.requesturllib.robotparser— Parser for robots.txthttp— HTTP moduleshttp.client— HTTP protocol clientftplib— FTP protocol clientpoplib— POP3 protocol clientimaplib— IMAP4 protocol clientsmtplib— SMTP protocol clientuuid— UUID objects according to RFC 9562socketserver— A framework for network servershttp.server— HTTP servershttp.cookies— HTTP state managementhttp.cookiejar— Cookie handling for HTTP clientsxmlrpc— XMLRPC server and client modulesxmlrpc.client— XML-RPC client accessxmlrpc.server— Basic XML-RPC serversipaddress— IPv4/IPv6 manipulation library
- Multimedia-Dienste
- Internationalization
- Grafische Benutzeroberflächen mit Tk
tkinter— Python-Schnittstelle zu Tcl/Tktkinter.colorchooser— Dialog zur Farbauswahltkinter.font— Tkinter-Hülle für Schriftarten- Tkinter dialogs
tkinter.messagebox— Tkinter message promptstkinter.scrolledtext— Text-Widget mit Scrollbartkinter.dnd— Unterstützung für Drag-and-droptkinter.ttk— Tk-Widgets mit Themes- IDLE — Python editor and shell
turtle— Turtle-Grafik- Tutorial
- Referenz
- How-to-Anleitungen
- How to automatically begin and end filling
- How to use compound shapes
- How to use the
turtlemodule namespace - How to use turtle graphics in a script
- How to use object-oriented turtle graphics
- How to use
help() - Übersetzung von Docstrings in verschiedene Sprachen
- Wie man Screen und Turtles konfiguriert
- Erklärung
turtledemo— Demo-Skripte
- Development Tools
typing— Support for type hints- Specification for the Python Type System
- Type aliases
- NewType
- Annotating callable objects
- Generics
- Annotating tuples
- The type of class objects
- Annotating generators and coroutines
- User-defined generic types
- The
Anytype - Nominal vs structural subtyping
- Module contents
- Deprecation Timeline of Major Features
pydoc— Documentation generator and online help system- Python Development Mode
doctest— Test interactive Python examplesunittest— Unit testing frameworkunittest.mock— mock object libraryunittest.mock— getting started- Using Mock
- Mock patching methods
- Mock for method calls on an object
- Mocking classes
- Naming your mocks
- Tracking all calls
- Setting return values and attributes
- Raising exceptions with mocks
- Side effect functions and iterables
- Mocking asynchronous iterators
- Mocking asynchronous context manager
- Creating a mock from an existing object
- Using side_effect to return per file content
- Patch decorators
- Further examples
- Mocking chained calls
- Partial mocking
- Mocking a generator method
- Applying the same patch to every test method
- Mocking unbound methods
- Checking multiple calls with mock
- Coping with mutable arguments
- Nesting patches
- Mocking a dictionary with MagicMock
- Mock subclasses and their attributes
- Mocking imports with patch.dict
- Tracking order of calls and less verbose call assertions
- More complex argument matching
- Using Mock
test— Regression tests package for Pythontest.support— Utilities for the Python test suitetest.support.socket_helper— Utilities for socket teststest.support.script_helper— Utilities for the Python execution teststest.support.bytecode_helper— Support tools for testing correct bytecode generationtest.support.threading_helper— Utilities for threading teststest.support.os_helper— Utilities for os teststest.support.import_helper— Utilities for import teststest.support.warnings_helper— Utilities for warnings tests
- Debugging and profiling
- Audit events table
bdb— Debugger frameworkfaulthandler— Dump the Python tracebackpdb— The Python Debuggerprofiling— Python profilers- Introduction to profiling
- Choosing a profiler
- Quick start
- Understanding profile output
- Legacy compatibility
pstats— Statistics for profilerstimeit— Measure execution time of small code snippetstrace— Trace or track Python statement executiontracemalloc— Trace memory allocations
- Software Packaging and Distribution
- Python Runtime Services
sys— System-specific parameters and functionssys.monitoring— Execution event monitoringsysconfig— Provide access to Python’s configuration informationbuiltins— Built-in objects__main__— Top-level code environmentwarnings— Warning controldataclasses— Data Classescontextlib— Utilities forwith-statement contextsabc— Abstract Base Classesatexit— Exit handlerstraceback— Print or retrieve a stack traceback__future__— Future statement definitionsgc— Garbage Collector interfaceinspect— Inspect live objectsannotationlib— Functionality for introspecting annotationssite— Site-specific configuration hook
- Custom Python Interpreters
- Module importieren
zipimport— Import modules from Zip archivespkgutil— Package extension utilitymodulefinder— Von einem Skript verwendete Module findenrunpy— Locating and executing Python modulesimportlib— The implementation ofimportimportlib.resources– Package resource reading, opening and accessimportlib.resources.abc– Abstract base classes for resourcesimportlib.metadata– Accessing package metadata- The initialization of the
sys.pathmodule search path
- Python Language Services
ast— Abstract syntax treessymtable— Access to the compiler’s symbol tablestoken— Constants used with Python parse treeskeyword— Testing for Python keywordstokenize— Tokenizer for Python sourcetabnanny— Detection of ambiguous indentationpyclbr— Python module browser supportpy_compile— Compile Python source filescompileall— Byte-compile Python librariesdis— Disassembler for Python bytecodepickletools— Werkzeuge für Entwickler von pickle
- MS Windows-spezifische Dienste
- Unix-specific services
shlex— Simple lexical analysisposix— The most common POSIX system callspwd— The password databasegrp— The group databasetermios— POSIX style tty controltty— Terminal control functionspty— Pseudo-terminal utilitiesfcntl— Thefcntlandioctlsystem callsresource— Resource usage informationsyslog— Unix syslog library routines
- Module mit Befehlszeilenschnittstelle (CLI)
- Superseded modules
- Removed Modules
- Security Considerations
- Extending and Embedding the Python Interpreter
- Python/C-API-Referenzhandbuch
- Einführung
- C API and ABI Stability
- The Very High Level Layer
- Reference Counting
- Exception Handling
- Defining extension modules
- Definition slots
- Utilities
- Operating System Utilities
- System Functions
- Process Control
- Importing Modules
- Data marshalling support
- Argumente auswerten und Werte bilden
- String conversion and formatting
- Character classification and conversion
- PyHash API
- Reflection
- Codec registry and support functions
- PyTime C API
- Support for Perf Maps
- Expat C API
- Abstrakte Objekte Schicht
- Concrete Objects Layer
- Fundamental Objects
- Numeric Objects
- Sequence Objects
- Container Objects
- Function Objects
- Other Objects
- C API for extension modules
- Interpreter initialization and finalization
- Thread states and the global interpreter lock
- Asynchronous notifications
- Operating system thread APIs
- Synchronization primitives
- Thread-local storage support
- Multiple interpreters in a Python process
- Profiling and tracing
- Reference tracing
- Performance statistics
- Python Initialization Configuration
- Memory Management
- Object Implementation Support
- Objekte auf dem Heap zuweisen
- Object Life Cycle
- Common Object Structures
- Type Object Structures
- Supporting Cyclic Garbage Collection
- API- und ABI-Versionierung
- Monitoring C API
- Generating Execution Events
- Installieren von Python-Modulen
- Python-HOWTOs
- Häufig gestellte Fragen zu Python
- Allgemeine Python-FAQ
- FAQ zum Programmieren
- Design und Geschichte FAQ
- Warum verwendet Python Einrückung, um Anweisungen zu gruppieren?
- Warum bekomme ich bei einfachen Rechenoperationen seltsame Ergebnisse?
- Warum sind Gleitkommaberechnungen so ungenau?
- Warum sind Zeichenketten in Python unveränderlich?
- Warum muss ‚self‘ in Methodendefinitionen und -aufrufen ausdrücklich angegeben werden?
- Warum kann ich in einem Ausdruck keine Zuweisung verwenden?
- Warum verwendet Python für manches Methoden (z. B. list.index()), für anderes aber Funktionen (z. B. len(list))?
- Warum ist join() eine Methode von Zeichenketten und nicht von Listen oder Tupeln?
- Wie schnell sind Ausnahmen?
- Warum gibt es in Python keine switch- oder case-Anweisung?
- Könnt ihr Threads nicht im Interpreter nachbilden, statt sich auf eine betriebssystemspezifische Thread-Umsetzung zu stützen?
- Warum dürfen Lambda-Ausdrücke keine Anweisungen enthalten?
- Lässt sich Python zu Maschinencode, C oder einer anderen Sprache kompilieren?
- Wie verwaltet Python den Speicher?
- Warum verwendet CPython kein herkömmlicheres Schema zur Speicherbereinigung?
- Warum wird beim Beenden von CPython nicht aller Speicher freigegeben?
- Warum gibt es getrennte Datentypen für Tupel und Listen?
- Wie sind Listen in CPython umgesetzt?
- Wie sind Dictionarys in CPython umgesetzt?
- Warum müssen Schlüssel eines Dictionarys unveränderlich sein?
- Warum gibt list.sort() nicht die sortierte Liste zurück?
- Wie gibt man in Python eine Schnittstellenspezifikation an und setzt sie durch?
- Warum gibt es kein goto?
- Warum dürfen rohe Zeichenketten (r-Strings) nicht mit einem Rückwärtsschrägstrich enden?
- Warum hat Python keine „with“-Anweisung für Attributzuweisungen?
- Warum unterstützen Generatoren die with-Anweisung nicht?
- Warum sind bei den Anweisungen if/while/def/class Doppelpunkte nötig?
- Warum erlaubt Python Kommas am Ende von Listen und Tupeln?
- FAQ zu Bibliothek und Erweiterungen
- FAQ zur Erweiterung/Einbettung
- Kann ich eigene Funktionen in C erstellen?
- Kann ich eigene Funktionen in C++ erstellen?
- C zu schreiben ist mühsam. Gibt es Alternativen?
- Wie führe ich beliebige Python-Anweisungen aus C heraus aus?
- Wie werte ich einen beliebigen Python-Ausdruck aus C heraus aus?
- Wie hole ich C-Werte aus einem Python-Objekt heraus?
- Wie erzeuge ich mit Py_BuildValue() ein Tupel beliebiger Länge?
- Wie rufe ich die Methode eines Objekts aus C heraus auf?
- Wie fange ich die Ausgabe von PyErr_Print() ab (oder von allem, was nach stdout/stderr schreibt)?
- Wie greife ich aus C auf ein in Python geschriebenes Modul zu?
- Wie spreche ich C++-Objekte aus Python heraus an?
- Ich habe mit der Setup-Datei ein Modul hinzugefügt, und make schlägt fehl. Warum?
- Wie finde ich Fehler in einer Erweiterung?
- Ich will auf meinem Linux-System ein Python-Modul kompilieren, aber einige Dateien fehlen. Warum?
- Wie unterscheide ich „unvollständige Eingabe“ von „ungültiger Eingabe“?
- Wie finde ich die undefinierten g++-Symbole __builtin_new oder __pure_virtual?
- Kann ich eine Objektklasse erzeugen, bei der manche Methoden in C und andere in Python umgesetzt sind, etwa über Vererbung?
- Python unter Windows FAQ
- Wie führe ich unter Windows ein Python-Programm aus?
- Wie kann ich Python-Skripte ausführbar machen?
- Warum dauert es manchmal so lange, bis Python startet?
- Wie kann ich aus einem Python-Skript eine ausführbare Datei erstellen?
- Sind
*.pyd-Dateien das gleiche wie eine DLL? - Wie kann ich Python in eine Windows-Anwendung einbinden?
- Wie halte ich andere Editoren davon auf, „Tabs“ in meinen Python-Code zu schreiben?
- Wie prüfe ich auf einen Tastendruck ohne zu blockieren?
- Wie löse ich „missing api-ms-win-crt-runtime-l1-1-0.dll“ Fehler?
- Graphische Oberfläche FAQ
- FAQ „Warum ist Python auf meinem Computer installiert?“
- Deprecations
- Glossar
- Über diese Dokumentation
- Umgang mit Fehlern
- Copyright
- Geschichte und Lizenz
- Geschichte der Software
- Allgemeine Geschäftsbedingungen für den Zugriff auf oder die anderweitige Nutzung von Python
- Lizenzen und Danksagungen für die integrierte Software
- Mersenne Twister
- Sockets
- Asynchrone Socket-Dienste
- Cookie Verwaltung
- Ausführungsverfolgung
- UUencode und UUdecode Funktionen
- XML-Remoteprozeduraufrufe
- test_epoll
- Select kqueue
- SipHash24
- strtod und dtoa
- OpenSSL
- expat
- libffi
- zlib
- cfuhash
- libmpdec
- W3C-C14N-Testsuite
- mimalloc
- asyncio
- Global Unbounded Sequences (GUS)
- Zstandard-Bindings
- Modul profiling
- Pixi-Pakete
- Unicode-Zeichendatenbank