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

Skip to content

Commit 257d58e

Browse files
committed
add CO_HAS_DOCSTRING flag
1 parent 70a1313 commit 257d58e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Include/cpython/code.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ struct PyCodeObject _PyCode_DEF(1);
174174

175175
#define CO_NO_MONITORING_EVENTS 0x2000000
176176

177+
/* Whether the first element in co_consts is doc string */
178+
#define CO_HAS_DOCSTRING 0x4000000
179+
177180
/* This should be defined if a future statement modifies the syntax.
178181
For example, when a keyword is added.
179182
*/

0 commit comments

Comments
 (0)