python-prompt-toolkit v3.0.0 Release Notes
Release Date: 2019-11-24 // over 4 years ago-
๐ New features:
- (almost) 100% type annotated.
- Native asyncio instead of custom event loops.
- โ Added shift-based text selection (use shift+arrows to start selecting text).
๐ฅ Breaking changes:
- ๐ Python 2 support has been dropped. Minimal Python version is now 3.6, although 3.7 is preferred (because of ContextVars).
- Native asyncio, so some async code becomes slightly different.
- The active
Application
became a contextvar. Which means that it should be propagated correctly to the code that requires it. However, random other threads or coroutines won't be able to know what the current application is. - The dialog shortcuts API changed. All dialog functions now return an
Application
. You still have to call eitherrun()
orrun_async
on theApplication
object. - The way inputhooks work is changed.
patch_stdout
now requires anApplication
as input.