From 7ba1f75f3f02b4b50ac6d7e17d15e467afa36aac Mon Sep 17 00:00:00 2001 From: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com> Date: Thu, 14 May 2020 21:59:46 -0300 Subject: bpo-38872: Document exec symbol for codeop.compile_command (GH-20047) * Document exec symbol for codeop.compile_command * Remove extra statements Co-authored-by: nanjekyejoannah --- Doc/library/codeop.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Doc/library/codeop.rst') diff --git a/Doc/library/codeop.rst b/Doc/library/codeop.rst index a52d2c62c4..c66b9d3ec0 100644 --- a/Doc/library/codeop.rst +++ b/Doc/library/codeop.rst @@ -43,8 +43,9 @@ To do just the former: :exc:`OverflowError` or :exc:`ValueError` if there is an invalid literal. The *symbol* argument determines whether *source* is compiled as a statement - (``'single'``, the default) or as an :term:`expression` (``'eval'``). Any - other value will cause :exc:`ValueError` to be raised. + (``'single'``, the default), as a sequence of statements (``'exec'``) or + as an :term:`expression` (``'eval'``). Any other value will + cause :exc:`ValueError` to be raised. .. note:: -- cgit v1.2.1