Skip to content

Commit 2f44dfe

Browse files
committed
apply suggested changes
1 parent 0006a4e commit 2f44dfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/reference/datamodel.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,7 +1526,7 @@ positional arguments; bit ``0x08`` is set if the function uses the
15261526
if the function is a generator. See :ref:`inspect-module-co-flags` for details
15271527
on the semantics of each flags that might be present.
15281528

1529-
Future feature declarations (e.g. ``from __future__ import divisions``) also use
1529+
Future feature declarations (e.g. ``from __future__ import divisions``) also use bits
15301530
in :attr:`~codeobject.co_flags` to indicate whether a code object was compiled with a
15311531
particular feature enabled. See :attr:`~__future__._Feature.compiler_flag`.
15321532

@@ -1535,7 +1535,7 @@ Other bits in :attr:`~codeobject.co_flags` are reserved for internal use.
15351535
.. index:: single: documentation string
15361536

15371537
If a code object represents a function and has a docstring,
1538-
:data:`~inspect.CO_HAS_DOCSTRING` bit is set in :attr:`~codeobject.co_flags`
1538+
the :data:`~inspect.CO_HAS_DOCSTRING` bit is set in :attr:`~codeobject.co_flags`
15391539
and the first item in :attr:`~codeobject.co_consts` is
15401540
the docstring of the function.
15411541

0 commit comments

Comments
 (0)