Fix documentation in code.py (GH-17988)
This commit is contained in:
parent
f04750bb7a
commit
b4cdb3f60e
|
@ -76,7 +76,7 @@ Interactive Interpreter Objects
|
||||||
|
|
||||||
Compile and run some source in the interpreter. Arguments are the same as for
|
Compile and run some source in the interpreter. Arguments are the same as for
|
||||||
:func:`compile_command`; the default for *filename* is ``'<input>'``, and for
|
:func:`compile_command`; the default for *filename* is ``'<input>'``, and for
|
||||||
*symbol* is ``'single'``. One several things can happen:
|
*symbol* is ``'single'``. One of several things can happen:
|
||||||
|
|
||||||
* The input is incorrect; :func:`compile_command` raised an exception
|
* The input is incorrect; :func:`compile_command` raised an exception
|
||||||
(:exc:`SyntaxError` or :exc:`OverflowError`). A syntax traceback will be
|
(:exc:`SyntaxError` or :exc:`OverflowError`). A syntax traceback will be
|
||||||
|
|
|
@ -40,7 +40,7 @@ class InteractiveInterpreter:
|
||||||
|
|
||||||
Arguments are as for compile_command().
|
Arguments are as for compile_command().
|
||||||
|
|
||||||
One several things can happen:
|
One of several things can happen:
|
||||||
|
|
||||||
1) The input is incorrect; compile_command() raised an
|
1) The input is incorrect; compile_command() raised an
|
||||||
exception (SyntaxError or OverflowError). A syntax traceback
|
exception (SyntaxError or OverflowError). A syntax traceback
|
||||||
|
|
Loading…
Reference in New Issue