Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Nov 6, 2022

Conversation

srfwx
Copy link
Contributor

@srfwx srfwx commented Sep 26, 2019

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.

…nction

Using the prompt() function from prompt_toolkit.shortcuts led to unbounded memory growth.
We now create a PromptSession() instance and use its prompt() method which takes the same arguments as the the former prompt() function.
Uses PromptSession() class from prompt_toolkit instead of prompt() fu…
@auvipy auvipy merged commit 3dc44d9 into click-contrib:master Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants