Title: bpo-40334: Make the PyPegen* and PyParser* APIs more consistent by lysnikolaou · Pull Request #19839 · python/cpython · GitHub
Open Graph Title: bpo-40334: Make the PyPegen* and PyParser* APIs more consistent by lysnikolaou · Pull Request #19839 · python/cpython
X Title: bpo-40334: Make the PyPegen* and PyParser* APIs more consistent by lysnikolaou · Pull Request #19839 · python/cpython
Description: This PR tries to make both APIs more consistent by doing the following: Remove the PyPegen_CodeObjectFrom* functions, which weren't used and will probably not be needed. Functions like Py_CompileStringObject can be used instead. Include a const char *filename parameter in PyPegen_ASTFromString. Rename PyPegen_ASTFromFile to PyPegen_ASTFromFilename, because its signature is not the same with PyParser_ASTFromFile. Closes we-like-parsers#104. https://bugs.python.org/issue40334
Open Graph Description: This PR tries to make both APIs more consistent by doing the following: Remove the PyPegen_CodeObjectFrom* functions, which weren't used and will probably not be needed. Functions like Py_Comp...
X Description: This PR tries to make both APIs more consistent by doing the following: Remove the PyPegen_CodeObjectFrom* functions, which weren't used and will probably not be needed. Functions like Py_...
Opengraph URL: https://github.com/python/cpython/pull/19839
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:68561ccb-c5fd-9971-ee1f-885b0f304e79 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D3F2:CE9E9:AA7597:EE953D:696A1C15 |
| html-safe-nonce | ad91f6b7265c70731589f4a01c4953d4d99f23b525808d4c395ef5888830917b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0YyOkNFOUU5OkFBNzU5NzpFRTk1M0Q6Njk2QTFDMTUiLCJ2aXNpdG9yX2lkIjoiMTc2MzMzNzQ4ODQzNjk2MDI3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 03eff0495d4d691fef0a518bd78eb68ca48c2abf4625c78510e5eaa49e43c68f |
| hovercard-subject-tag | pull_request:412201309 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/19839/files |
| twitter:image | https://avatars.githubusercontent.com/u/20306270?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/20306270?s=400&v=4 |
| og:image:alt | This PR tries to make both APIs more consistent by doing the following: Remove the PyPegen_CodeObjectFrom* functions, which weren't used and will probably not be needed. Functions like Py_Comp... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 34a52bd10bd674f68e5c1b6b74413b79bf2ca20c551055ace3f7cdd112803923 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e8bd37502700f365b18a4d39acf7cb7947e11b1a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width