https://github.com/python/cpython/commit/2c9842f7ace5ba227c8e94bdd96cbce502c47804 commit: 2c9842f7ace5ba227c8e94bdd96cbce502c47804 branch: 3.13 author: Hugo van Kemenade <1324225+hug...@users.noreply.github.com> committer: hugovk <1324225+hug...@users.noreply.github.com> date: 2025-04-26T21:47:51+03:00 summary:
[3.13] doc: update co_flags reference (GH-132300) (#132936) Co-authored-by: Inada Naoki <songofaca...@gmail.com> files: M Doc/reference/datamodel.rst diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 819126dab70e9b..76ab06c84c620a 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -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. _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com