-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
gh-115077: Argument Clinic: generate better error messages when parsing function declaration #115555
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
gh-115077: Argument Clinic: generate better error messages when parsing function declaration #115555
Changes from all commits
fe3b8ca
c926abc
33c21e7
60553b7
9b93771
1cc7248
e8c1de3
3c83c5d
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import re | ||
|
||
|
||
RE_FULLNAME = re.compile(r"\s*([\w.]+)\s*") | ||
RE_C_BASENAME = re.compile(r"\bas\b\s*(?:([^-=\s]+)\s*)?") | ||
RE_CLONE = re.compile(r"=\s*(?:([^-=\s]+)\s*)?") | ||
Comment on lines
+5
to
+6
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 wrote it pass most of your tests, but perhaps 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. Well, my test case might also be too contrived. |
||
RE_RETURNS = re.compile(r"->\s*(.*)") |
Uh oh!
There was an error while loading. Please reload this page.