summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-05-30 07:56:16 (GMT)
committerGitHub <noreply@github.com>2018-05-30 07:56:16 (GMT)
commit143ce5c6db77a0b9d451b8463dee6752358a9ea4 (patch)
tree06447cc4461c71aa7163c1b844e1a48ec266539c /Include
parente9537ad6a128924dd610bea2268065500c174181 (diff)
downloadcpython-143ce5c6db77a0b9d451b8463dee6752358a9ea4.zip
cpython-143ce5c6db77a0b9d451b8463dee6752358a9ea4.tar.gz
cpython-143ce5c6db77a0b9d451b8463dee6752358a9ea4.tar.bz2
bpo-33691: Add _PyAST_GetDocString(). (GH-7236)
Diffstat (limited to 'Include')
-rw-r--r--Include/ast.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Include/ast.h b/Include/ast.h
index 5bc2b05..c824554 100644
--- a/Include/ast.h
+++ b/Include/ast.h
@@ -21,6 +21,11 @@ PyAPI_FUNC(mod_ty) PyAST_FromNodeObject(
/* _PyAST_ExprAsUnicode is defined in ast_unparse.c */
PyAPI_FUNC(PyObject *) _PyAST_ExprAsUnicode(expr_ty);
+/* Return the borrowed reference to the first literal string in the
+ sequence of statemnts or NULL if it doesn't start from a literal string.
+ Doesn't set exception. */
+PyAPI_FUNC(PyObject *) _PyAST_GetDocString(asdl_seq *);
+
#endif /* !Py_LIMITED_API */
#ifdef __cplusplus