Skip to content

Commit 2c9842f

Browse files
hugovkmethane
andauthored
[3.13] doc: update co_flags reference (GH-132300) (#132936)
Co-authored-by: Inada Naoki <[email protected]>
1 parent 994529d commit 2c9842f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Doc/reference/datamodel.rst

+2-4
Original file line numberDiff line numberDiff line change
@@ -1479,11 +1479,9 @@ positional arguments; bit ``0x08`` is set if the function uses the
14791479
if the function is a generator. See :ref:`inspect-module-co-flags` for details
14801480
on the semantics of each flags that might be present.
14811481

1482-
Future feature declarations (``from __future__ import division``) also use bits
1482+
Future feature declarations (for example, ``from __future__ import division``) also use bits
14831483
in :attr:`~codeobject.co_flags` to indicate whether a code object was compiled with a
1484-
particular feature enabled: bit ``0x2000`` is set if the function was compiled
1485-
with future division enabled; bits ``0x10`` and ``0x1000`` were used in earlier
1486-
versions of Python.
1484+
particular feature enabled. See :attr:`~__future__._Feature.compiler_flag`.
14871485

14881486
Other bits in :attr:`~codeobject.co_flags` are reserved for internal use.
14891487

0 commit comments

Comments
 (0)