Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7ceaaee

Browse files
committed
update doc
1 parent b6edafd commit 7ceaaee

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/reference/datamodel.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1536,9 +1536,9 @@ Other bits in :attr:`~codeobject.co_flags` are reserved for internal use.
15361536

15371537
.. index:: single: documentation string
15381538

1539-
If a code object represents a function, the first item in
1540-
:attr:`~codeobject.co_consts` is
1541-
the documentation string of the function, or ``None`` if undefined.
1539+
If a code object represents a function and has a docstring,
1540+
the first item in :attr:`~codeobject.co_consts` is
1541+
the documentation string of the function.
15421542

15431543
Methods on code objects
15441544
~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)