python-prompt-toolkit v2.0.7 Release Notes

Release Date: 2018-10-30 // over 5 years ago
  • ๐Ÿ› Bug fixes:

    • ๐Ÿ›  Fixed assertion in PromptSession: the style_transformation check was wrong.
    • โœ‚ Removed 'default' attribute in PromptSession. Only ask for it in the prompt() method. This fixes the issue that passing default once, will store it for all consequent calls in the PromptSession.
    • Ensure that __pt_formatted_text__ always returns a FormattedText instance. This fixes an issue with print_formatted_text.

    ๐Ÿ†• New features:

    • ๐Ÿ‘Œ Improved handling of situations where stdin or stdout are not a terminal. (Print warning instead of failing with an assertion.)
    • โž• Added print_container utility.
    • Sound bell when attempting to edit read-only buffer.
    • ๐Ÿ– Handle page-down and page-up keys in RadioList.
    • Accept any collections.abc.Sequence for HSplit/VSplit children (instead of lists only).
    • ๐Ÿ‘Œ Improved Vi key bindings: return to navigation mode when Insert is pressed.