-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
Streamline family syntax in Tools/cases_generator #106706
Comments
Where I find thet code? |
In Tools/cases_generator/. The example is in Python/bytecodes.c. |
I started working on this here: https://github.com/kgdiem/cpython/tree/streamline-family-syntax I think the correct course of action to change the validations Is that correct? [1] https://github.com/python/cpython/blob/main/Tools/cases_generator/generate_cases.py#L809 |
@kgdiem You got it! |
|
From `family(opname, STRUCTSIZE) = OPNAME + SPEC1 + ... + SPECn;` to `family(OPNAME, STRUCTSIZE) = SPEC1 + ... + SPECn;`
@kgdiem Thanks for your contribution! You're welcome to help out more any time. |
Thanks! I'm interested in spending 5-10 hours/week working on Python/Python ecosystem but having some trouble finding another issue I can pick up. |
Cool. May I inquire what motivates you to do this? And what kind of issues are you looking for? Can they involve C code? |
I enjoy it! I code as a hobby (and professionally) and want to do something beyond web development; high perf, systems programming, applied CS, etc
Ya. I started looking at the last issue you'd opened (gh-106608) but was a bit intimidated and was trying to find something "easier" / more in my traditional wheelhouse. In thinking about my reply here, re-reviewing the issue & related the code, I'm pretty confident and am going to give it a shot. I'll reach out over there if I need any help. Thanks again. |
Cool, see you at that issue. Be sure not to bang your head against the wall for too long -- ask for help before it starts bleeding! :-) |
The syntax to designate a family currently looks like this:
Here the
store_subscr
"family name" is redundant (and in fact we even had one case where it was incorrect).I propose to change it to be more similar to the
pseudo
syntax, so it will becomeThis should be a straightforward change to the parser and code generator in Tools/cases_generator.
Linked PRs
The text was updated successfully, but these errors were encountered: