-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Argument Clinic 'destination <name> clear' is broken #106970
Labels
Comments
erlend-aasland
added
type-bug
An unexpected behavior, bug, or error
topic-argument-clinic
labels
Jul 21, 2023
erlend-aasland
added a commit
that referenced
this issue
Jul 22, 2023
…06972) Add test for the 'destination <name> clear' command, and the 'destination' directive in general. Fix two bugs in 'destination <name> clear' command: 1. The text attribute of the allocator is called 'text', not '_text' 2. Return after processing the 'clear' command, instead of proceeding directly to the fail().
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jul 22, 2023
…nd (pythonGH-106972) Add test for the 'destination <name> clear' command, and the 'destination' directive in general. Fix two bugs in 'destination <name> clear' command: 1. The text attribute of the allocator is called 'text', not '_text' 2. Return after processing the 'clear' command, instead of proceeding directly to the fail(). (cherry picked from commit 3372bcb) Co-authored-by: Erlend E. Aasland <erlend@python.org>
erlend-aasland
added a commit
that referenced
this issue
Jul 22, 2023
…and (GH-106972) (#106983) Add test for the 'destination <name> clear' command, and the 'destination' directive in general. Fix two bugs in 'destination <name> clear' command: 1. The text attribute of the allocator is called 'text', not '_text' 2. Return after processing the 'clear' command, instead of proceeding directly to the fail(). (cherry picked from commit 3372bcb) Co-authored-by: Erlend E. Aasland <erlend@python.org>
erlend-aasland
added a commit
that referenced
this issue
Jul 22, 2023
…and (#106972) (#107059) Add test for the 'destination <name> clear' command, and the 'destination' directive in general. Fix two bugs in 'destination <name> clear' command: 1. The text attribute of the allocator is called 'text', not '_text' 2. Return after processing the 'clear' command, instead of proceeding directly to the fail(). (cherry picked from commit 3372bcb)
Is this fixed now? |
Yep! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
destination <name> clear
command is documented like this:Clearly, the last sentence is correct, because this command contains two bugs, and nobody has ever complained:
clear
command, so it jumps straight into "fail because we got an unknown command"The fixes are easy, so I suggest we apply the fixes and add regressions tests. An alternative could be to remove the
clear
command, but I don't think we should tear out features lightly, no matter how obscure they are.Found while working on #106935.
Linked PRs
The text was updated successfully, but these errors were encountered: