summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_compile.h
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2024-09-13 14:06:06 (GMT)
committerGitHub <noreply@github.com>2024-09-13 14:06:06 (GMT)
commita9594a34c62487961be86c0925daaa43bb467bb9 (patch)
treee7674482ca96b3e045ab3d5d9a7e56bbba5da0f0 /Include/internal/pycore_compile.h
parentcfe6074d1fa81cf0684fbf8a623616441a1966e7 (diff)
downloadcpython-a9594a34c62487961be86c0925daaa43bb467bb9.zip
cpython-a9594a34c62487961be86c0925daaa43bb467bb9.tar.gz
cpython-a9594a34c62487961be86c0925daaa43bb467bb9.tar.bz2
gh-124022: Fix bug where class docstring is removed in interactive mode (#124023)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Diffstat (limited to 'Include/internal/pycore_compile.h')
-rw-r--r--Include/internal/pycore_compile.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/internal/pycore_compile.h b/Include/internal/pycore_compile.h
index 51db6fc..5359f2d 100644
--- a/Include/internal/pycore_compile.h
+++ b/Include/internal/pycore_compile.h
@@ -172,7 +172,8 @@ int _PyCompile_AddDeferredAnnotaion(struct _PyCompiler *c, stmt_ty s);
int _PyCodegen_AddReturnAtEnd(struct _PyCompiler *c, int addNone);
int _PyCodegen_EnterAnonymousScope(struct _PyCompiler* c, mod_ty mod);
int _PyCodegen_Expression(struct _PyCompiler *c, expr_ty e);
-int _PyCodegen_Body(struct _PyCompiler *c, _Py_SourceLocation loc, asdl_stmt_seq *stmts);
+int _PyCodegen_Body(struct _PyCompiler *c, _Py_SourceLocation loc, asdl_stmt_seq *stmts,
+ bool is_interactive);
/* Utility for a number of growing arrays used in the compiler */
int _PyCompile_EnsureArrayLargeEnough(