reStructuredText markup - Python Developer's Guide
Oct 23, 2026 ... Quick reference: This table summarizes which markup should ... Code example bodies should use normal Python 4-space indentation.
Oct 23, 2026 ... Quick reference: This table summarizes which markup should ... Code example bodies should use normal Python 4-space indentation.
Oct 23, 2026 · The Python Language Reference should be factual and succinct. The purpose of reference documentation is to describe rather than to explain. Accuracy and consistency are key as this type of documentation should be seen as an authoritative source. Code examples can be a useful way of achieving these objectives.
Oct 29, 2026 ... The most obvious example is the builtin function range() , which ... code will propagate the error. Otherwise it will encode the value ...
Code equivalents. Audience. Function signatures. reStructuredText markup.Module-specific markup. Information units. Showing code examples. Roles. Cross-linking markup. Paragraph-level markup. Table-of-contents markup. Index-generating markup.
Feb 20, 2026 · Getting started ¶ The Python language has a substantial body of documentation, much of it contributed by various authors. The markup used for the Python documentation is reStructuredText, developed by the docutils project, amended by custom directives and using a toolset named Sphinx to post-process the HTML output.
Jul 2, 2026 · Helping with documentation ¶ Python is known for having well-written documentation. Maintaining the documentation’s accuracy and keeping a high level of quality takes a lot of effort. Community members, like you, help with writing, editing, and updating content, and these contributions are appreciated and welcomed. This high-level Helping with Documentation section provides: an overview of ...
Aug 18, 2025 · Tutorial ¶ The best way to get a sense of how Argument Clinic works is to convert a function to work with it. Here, then, are the bare minimum steps you’d need to follow to convert a function to work with Argument Clinic. Note that for code you plan to check in to CPython, you really should take the conversion farther, using some of the advanced concepts you’ll see later on in the ...
Oct 11, 2026 · Argument Clinic is a preprocessor for CPython C files. It was introduced in Python 3.4 with PEP 436, in order to provide introspection signatures, and to generate performant and tailor-made boilerplate code for argument parsing in CPython builtins, module level functions, and class methods. This document is divided in four major sections: