mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Issue #18758: Fixed and improved cross-references.
This commit is contained in:
parent
24201d497c
commit
bfdcd436f0
40 changed files with 144 additions and 125 deletions
|
|
@ -29,13 +29,13 @@ build applications which provide an interactive interpreter prompt.
|
|||
|
||||
.. function:: interact(banner=None, readfunc=None, local=None)
|
||||
|
||||
Convenience function to run a read-eval-print loop. This creates a new instance
|
||||
of :class:`InteractiveConsole` and sets *readfunc* to be used as the
|
||||
:meth:`raw_input` method, if provided. If *local* is provided, it is passed to
|
||||
the :class:`InteractiveConsole` constructor for use as the default namespace for
|
||||
the interpreter loop. The :meth:`interact` method of the instance is then run
|
||||
with *banner* passed as the banner to use, if provided. The console object is
|
||||
discarded after use.
|
||||
Convenience function to run a read-eval-print loop. This creates a new
|
||||
instance of :class:`InteractiveConsole` and sets *readfunc* to be used as
|
||||
the :meth:`InteractiveConsole.raw_input` method, if provided. If *local* is
|
||||
provided, it is passed to the :class:`InteractiveConsole` constructor for
|
||||
use as the default namespace for the interpreter loop. The :meth:`interact`
|
||||
method of the instance is then run with *banner* passed as the banner to
|
||||
use, if provided. The console object is discarded after use.
|
||||
|
||||
|
||||
.. function:: compile_command(source, filename="<input>", symbol="single")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue