blob: 53c3a8c8f2a0f44d722854285cb768d74897f893 (
plain)
1
2
3
4
5
6
7
|
<span id="custominterp"></span><h1>Custom Python Interpreters</h1> <p>The modules described in this chapter allow writing interfaces similar to Python’s interactive interpreter. If you want a Python interpreter that supports some special feature in addition to the Python language, you should look at the <a class="reference internal" href="code#module-code" title="code: Facilities to implement read-eval-print loops."><code>code</code></a> module. (The <a class="reference internal" href="codeop#module-codeop" title="codeop: Compile (possibly incomplete) Python code."><code>codeop</code></a> module is lower-level, used to support compiling a possibly incomplete chunk of Python code.)</p> <p>The full list of modules described in this chapter is:</p> <ul> <li class="toctree-l1">
<a class="reference internal" href="code"><code>code</code> — Interpreter base classes</a><ul> <li class="toctree-l2"><a class="reference internal" href="code#interactive-interpreter-objects">Interactive Interpreter Objects</a></li> <li class="toctree-l2"><a class="reference internal" href="code#interactive-console-objects">Interactive Console Objects</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="codeop"><code>codeop</code> — Compile Python code</a></li> </ul> <div class="_attribution">
<p class="_attribution-p">
© 2001–2023 Python Software Foundation<br>Licensed under the PSF License.<br>
<a href="https://docs.python.org/3.12/library/custominterp.html" class="_attribution-link">https://docs.python.org/3.12/library/custominterp.html</a>
</p>
</div>
|