-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 7 commits
f1eba0c
9e16e68
b50ffbb
575462a
4201a09
7462dbb
6fa1136
3b4915a
2babb7d
4cae1c2
2c4944c
64d9f36
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -2059,10 +2059,11 @@ def interact(self): | |||||||||||||
| while True: | ||||||||||||||
| try: | ||||||||||||||
| request = self.getline('help> ') | ||||||||||||||
| if not request: break | ||||||||||||||
| except (KeyboardInterrupt, EOFError): | ||||||||||||||
| break | ||||||||||||||
| request = request.strip() | ||||||||||||||
| if not request: | ||||||||||||||
| continue | ||||||||||||||
|
|
||||||||||||||
|
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 | ||||||||||||||
| # get deleted while cleaning input | ||||||||||||||
|
|
||||||||||||||
| 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 | ||
|
yihong0618 marked this conversation as resolved.
|
||
| interactive mode. | ||
Uh oh!
There was an error while loading. Please reload this page.