tag:github.com,2008:https://github.com/prompt-toolkit/ptpython/releasesRelease notes from ptpython2025-11-20T21:21:08Ztag:github.com,2008:Repository/24589695/3.0.322025-11-20T21:22:53Z3.0.32<p>Fixes:</p>
<ul>
<li>Use ANSI colors (instead of RGB colors) for the default code theme. This<br>
improves the chances of having a better contrast with the background color,<br>
because we now use what is configured in the terminal emulator. The theme is<br>
called 'default-ansi' and exists alongside 'default'.</li>
</ul>jonathanslenderstag:github.com,2008:Repository/24589695/3.0.312025-11-20T21:23:32Z3.0.31<p>Fixes:</p>
<ul>
<li>Add <code>patch_stdout_raw</code> parameter to <code>embed()</code>.</li>
<li>Fix repl.min_brightness and repl.max_brightness config in history.</li>
<li>Fix positioning of exit confirmation (compatibility with latest prompt_toolkit).</li>
</ul>jonathanslenderstag:github.com,2008:Repository/24589695/3.0.302025-04-15T09:27:49Z3.0.30<p>New features:</p>
<ul>
<li>Show exception cause/context when printing chained exceptions.</li>
<li>Reworked project layout and use pyproject.toml instead of setup.py.</li>
</ul>
<p>Breaking changes:</p>
<ul>
<li>Drop Python 3.7 support.</li>
</ul>jonathanslenderstag:github.com,2008:Repository/24589695/3.0.292024-07-22T12:44:34Z3.0.29<p>Fixes:</p>
<ul>
<li>Further improve performance of dictionary completions.</li>
</ul>jonathanslenderstag:github.com,2008:Repository/24589695/3.0.282024-07-22T09:38:13Z3.0.28<p>New features:</p>
<ul>
<li>Custom 'exit' function to return from REPL that
<ul>
<li>doesn't terminate <code>sys.stdin</code> when <code>exit</code> is called (important for <code>embed()</code>).</li>
<li>doesn't require to be called with parentheses.</li>
</ul>
</li>
</ul>
<p>Fixes:</p>
<ul>
<li>Clean up signatures on control-c.</li>
</ul>jonathanslenderstag:github.com,2008:Repository/24589695/3.0.272024-05-27T20:55:51Z3.0.27<p>Fixes:</p>
<ul>
<li>Limit number of completions to 5k (for performance).</li>
<li>Several typing fixes.</li>
</ul>jonathanslenderstag:github.com,2008:Repository/24589695/3.0.262024-02-06T10:57:56Z3.0.26<p>Fixes:</p>
<ul>
<li>Handle <code>GeneratorExit</code> exception when leaving the paginator.</li>
</ul>jonathanslenderstag:github.com,2008:Repository/24589695/3.0.252023-12-14T09:35:24Z3.0.25<p>Fixes:</p>
<ul>
<li>Fix handling of 'config file does not exist' when embedding ptpython.</li>
</ul>jonathanslenderstag:github.com,2008:Repository/24589695/3.0.242023-12-13T09:49:02Z3.0.24<p>Fixes:</p>
<ul>
<li>Don't show "Impossible to read config file" warnings when no config file was passed to <code>run_config()</code>.</li>
<li>IPython integration fixes:
<ul>
<li>Fix top-level await in IPython.</li>
<li>Fix IPython <code>DeprecationWarning</code>.</li>
</ul>
</li>
<li>Output printing fixes:
<ul>
<li>Paginate exceptions if pagination is enabled.</li>
<li>Handle big outputs without running out of memory.</li>
</ul>
</li>
<li>Asyncio REPL improvements:
<ul>
<li>From now on, passing <code>--asyncio</code> is required to activate the asyncio-REPL. This will ensure that an event loop is created at the start in which we can run top-level await statements.</li>
<li>Use <code>get_running_loop()</code> instead of <code>get_event_loop()</code>.</li>
<li>Better handling of <code>SystemExit</code> and control-c in the async REPL.</li>
</ul>
</li>
</ul>jonathanslenderstag:github.com,2008:Repository/24589695/3.0.232023-02-22T10:52:15Z3.0.23<p>Release 3.0.23</p>jonathanslenders