click-contrib / click-repl

Subcommand REPL for click apps
MIT License
219 stars 40 forks source link

Fix unbound memory usage growth when using prompt() function #63

Closed srfwx closed 1 year ago

srfwx commented 5 years ago

Even the simplest example from the README.rst leads to unbound memory usage growth in my environment.

Instead of using the prompt() function from prompt_toolkit.shortcuts, I propose to use the prompt() method from the PromptSession() class.