Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6edafd commit 7ceaaeeCopy full SHA for 7ceaaee
1 file changed
Doc/reference/datamodel.rst
@@ -1536,9 +1536,9 @@ Other bits in :attr:`~codeobject.co_flags` are reserved for internal use.
1536
1537
.. index:: single: documentation string
1538
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.
+If a code object represents a function and has a docstring,
+the first item in :attr:`~codeobject.co_consts` is
+the documentation string of the function.
1542
1543
Methods on code objects
1544
~~~~~~~~~~~~~~~~~~~~~~~
0 commit comments