Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34k
gh-138568: make it the same behavior in repl help mode#138569
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
f1eba0c9e16e68b50ffbb575462a4201a097462dbb6fa11363b4915a2babb7d4cae1c22c4944c64d9f36File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -2059,9 +2059,10 @@ def interact(self): | ||||||||||||||
| while True: | ||||||||||||||
| try: | ||||||||||||||
| request = self.getline('help> ') | ||||||||||||||
| except (KeyboardInterrupt, EOFError): | ||||||||||||||
| break | ||||||||||||||
| if not request or request.isspace(): | ||||||||||||||
| continue # back to the prompt | ||||||||||||||
| request = request.strip() | ||||||||||||||
Comment on lines +2064 to 2067 Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I still think the following is cleaner than having the extra But this is a judgement call, and it's ultimately up to@AA-Turner. Suggested change
| ||||||||||||||
| # Make sure significant trailing quoting marks of literals don't | ||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| Adjusted the built-in :func:`help` function so that empty inputs are ignored in | ||
| interactive mode. |
Uh oh!
There was an error while loading.Please reload this page.