Python 3.15.2 documentation
Or all "What's new" documents since Python 2.0. Tutorial Start here: a tour of Python's syntax and features. Built-ins reference Built-in functions and classes.Project information: Reporting issues. Contributing to docs.
Or all "What's new" documents since Python 2.0. Tutorial Start here: a tour of Python's syntax and features. Built-ins reference Built-in functions and classes.Project information: Reporting issues. Contributing to docs.
14 hours ago · html — HyperText Markup Language support ¶ Source code: Lib/html/__init__.py This module defines utilities to manipulate HTML. html.escape(s, quote=True) ¶ Convert the characters &, < and > in string s to HTML-safe sequences. Use this if you need to display text that might contain such characters in HTML.
2to3 is a Python program that reads Python 2.x source code and applies a series of fixers to transform it into valid Python 3.x code. The standard library contains a rich set of fixers that will handle almost all code.
asyncio is a library to write concurrent code using the async/await syntax. asyncio is used as a foundation for multiple Python asynchronous frameworks that provide high-performance network and web-servers, database connection libraries, distributed task queues, etc.
14 hours ago · Source code: Lib/html/parser.py This module defines a class HTMLParser which serves as the basis for parsing text files formatted in HTML (HyperText Mark-up Language) and XHTML. Example HTML Parser...
The default Python prompt of the interactive shell when partial input is incomplete. Lastly, the Python documentation often uses three dots in conventional English usage to mean omitted content, even in code examples that also use them as the Ellipsis. The NotImplemented Object¶.
1 day ago · Source code: Lib/http/server.py This module defines classes for implementing HTTP servers. Availability: not WASI. This module does not work or is not available on WebAssembly. See WebAssembly plat...
Source code: Lib/json/__init__.py. JSON (JavaScript Object Notation), specified by RFC 7159 (which obsoletes RFC 4627) and by ECMA-404, is a lightweight data interchange format inspired by JavaScript object literal syntax (although it is not a strict subset of JavaScript [1] ).
2 days ago · Code Objects ¶ Code objects are a low-level detail of the CPython implementation. Each one represents a chunk of executable code that hasn’t yet been bound into a function. type PyCodeObject ¶ The C structure of the objects used to describe code objects. The fields of this type are subject to change at any time. PyTypeObject PyCode_Type ¶ This is an instance of PyTypeObject representing ...
1 day ago · Elsewhere, The Python Language Reference describes the exact syntax and semantics of the Python language, and Python built-ins reference describes the built-in functions. Python’s standard library is extensive, offering a wide range of facilities as indicated by the long table of contents listed below.