You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Argument Clinic 'destination <name> clear' is broken #106970
The destination <name> clear command is documented like this:
It removes all the accumulated text up to this point in the destination. (I don’t know what you’d need this for, but I thought maybe it’d be useful while someone’s experimenting.)
Clearly, the last sentence is correct, because this command contains two bugs, and nobody has ever complained:
The directive parser does not return immediately after executing the 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.
Activity
gh-106970: Fix Argument Clinic 'destination <name> clear' command (#1…
pythongh-106970: Fix Argument Clinic 'destination <name> clear' comma…
[3.12] gh-106970: Fix Argument Clinic 'destination <name> clear' comm…
[3.11] gh-106970: Fix Argument Clinic 'destination <name> clear' comm…
AlexWaygood commentedon Jul 24, 2023
Is this fixed now?
erlend-aasland commentedon Jul 24, 2023
Yep!