Descriptor Guide — Python 3.15.2 documentation
Simple example: A descriptor that returns a constant. Dynamic lookups. Managed attributes. Customized names. Closing thoughts. Complete Practical Example. Validator class.
Simple example: A descriptor that returns a constant. Dynamic lookups. Managed attributes. Customized names. Closing thoughts. Complete Practical Example. Validator class.
Download an archive containing all the documentation for this version of PythonSee the directory listing for file sizes. Problems. Open an issue if you have comments or suggestions for the Python documentation.
unittest — Unit testing framework. Basic example. Command-Line Interface.Some users will find that they have existing test code that they would like to run from unittest, without converting every old test function to a TestCase subclass.
Example: A single Python statement, paired with its expected output. DocTest: A collection of Examples, typically extracted from a single docstring or text file. Additional processing classes are defined to find, parse, and run, and check doctest examples