Title: Thoroughly refactor the cases generator by gvanrossum · Pull Request #107151 · python/cpython · GitHub
Open Graph Title: Thoroughly refactor the cases generator by gvanrossum · Pull Request #107151 · python/cpython
X Title: Thoroughly refactor the cases generator by gvanrossum · Pull Request #107151 · python/cpython
Description: This mostly extracts a whole bunch of stuff out of generate_cases.py into separate files, but there are a few other things going on here. analysis.py: Analyzer etc. instructions.py: Instruction etc. flags.py: InstructionFlags, variable_used, variable_used_unspecialized formatting.py: Formatter etc. Rename parser.py to parsing.py, to avoid conflict with stdlib parser.py Blackify most things Fix most mypy errors Remove output filenames from Generator state Fix unit tests The review request is mostly a heads up: if you have pending PRs that affect Tools/cases_generator/, they probably will become a major merge conflict. I can wait for those (making the conflicts my problem) but I need to know about them. Of course if you want to review the changes carefully, be my guest. (Why do this now? I have more changes coming up related to macros with array stack effects, but I'd like to get this out of the way first, so I don't mix refactoring and functionality changes.)
Open Graph Description: This mostly extracts a whole bunch of stuff out of generate_cases.py into separate files, but there are a few other things going on here. analysis.py: Analyzer etc. instructions.py: Instruction et...
X Description: This mostly extracts a whole bunch of stuff out of generate_cases.py into separate files, but there are a few other things going on here. analysis.py: Analyzer etc. instructions.py: Instruction et...
Opengraph URL: https://github.com/python/cpython/pull/107151
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:76d34cdb-ff31-901b-d736-646256a0dbce |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 91BC:2C2C4D:E8C48C:1421458:696A9010 |
| html-safe-nonce | 7f0ce99be53932162bdf6bc5e1906653cc22582d1e851587a358ea7fb34d3a86 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUJDOjJDMkM0RDpFOEM0OEM6MTQyMTQ1ODo2OTZBOTAxMCIsInZpc2l0b3JfaWQiOiI4Nzc3MDEwMzY4MzE2MzQ2Mzg0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 99c38c70d9c70ce10ff985461b0228c4d6ac426ed710ae6f507622bea183b0ce |
| hovercard-subject-tag | pull_request:1445727135 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/107151/checks |
| twitter:image | https://avatars.githubusercontent.com/u/2894642?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/2894642?s=400&v=4 |
| og:image:alt | This mostly extracts a whole bunch of stuff out of generate_cases.py into separate files, but there are a few other things going on here. analysis.py: Analyzer etc. instructions.py: Instruction et... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4dd496afc954da9c207b2d9fbe86e3074619f565754aa1d9274aec30d9e5b8d7 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 31496a13b80a2f6ad77d6c617ee2255a3545b539 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width