ptpython v3.0.11 Release Notes

Release Date: 2021-01-20 // over 1 year ago
  • ๐Ÿ†• New features:

    • โž• Add support for top-level await.
    • ๐Ÿ”จ Refactoring of event loop usage:

      • The ptpython input UI will now run in a separate thread. This makes it possible to properly embed ptpython in an asyncio application, without having to deal with nested event loops (which asyncio does not support).
      • The "eval" part doesn't anymore take place within a ptpython coroutine, so it can spawn its own loop if needed. This also fixes asyncio.run() usage in the REPL, which was broken before.
    • โž• Added syntax highlighting and autocompletion for !-style system commands.

    ๐Ÿ›  Fixes:

    • โœ‚ Remove unexpected additional line after output.
    • ๐Ÿ›  Fix system prompt. Accept !-style inputs again.
    • Don't execute PYTHONSTARTUP when -i flag was given.