]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] doc: update co_flags reference (GH-132300) (#132936)
authorHugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Sat, 26 Apr 2025 18:47:51 +0000 (21:47 +0300)
committerGitHub <noreply@github.com>
Sat, 26 Apr 2025 18:47:51 +0000 (21:47 +0300)
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Doc/reference/datamodel.rst

index 819126dab70e9bd90cc70cc96d4d1e94e12e2879..76ab06c84c620a2a760f275bd60774ecf0a49fae 100644 (file)
@@ -1479,11 +1479,9 @@ positional arguments; bit ``0x08`` is set if the function uses the
 if the function is a generator. See :ref:`inspect-module-co-flags` for details
 on the semantics of each flags that might be present.
 
-Future feature declarations (``from __future__ import division``) also use bits
+Future feature declarations (for example, ``from __future__ import division``) also use bits
 in :attr:`~codeobject.co_flags` to indicate whether a code object was compiled with a
-particular feature enabled: bit ``0x2000`` is set if the function was compiled
-with future division enabled; bits ``0x10`` and ``0x1000`` were used in earlier
-versions of Python.
+particular feature enabled. See :attr:`~__future__._Feature.compiler_flag`.
 
 Other bits in :attr:`~codeobject.co_flags` are reserved for internal use.