LICENSEWARE
Python Software Foundation Rule

Documentation code examples are dual licensed PSF-2.0 and 0BSD

Catalog row in Vendor License Rules · Cited

Kind
Use rights
Statement
History and License: Python software and documentation are licensed under the PSF License Version 2. Starting with Python 3.8.6, examples, recipes and other code in the documentation are dual licensed under the PSF License Version 2 and the Zero-Clause BSD licence, which permits use, copying, modification and distribution for any purpose without a notice requirement. (page undated; as published on 2026-09-27)
Applies when
Copying code samples from docs.python.org into proprietary or differently licensed code.
Applies to
Code in the Python documentation, 3.8.6 and later.
Esc