Title: gh-113317: Remove Argument Clinic global variable 'clinic' by vstinner · Pull Request #114752 · python/cpython · GitHub
Open Graph Title: gh-113317: Remove Argument Clinic global variable 'clinic' by vstinner · Pull Request #114752 · python/cpython
X Title: gh-113317: Remove Argument Clinic global variable 'clinic' by vstinner · Pull Request #114752 · python/cpython
Description: Add Clinic.warn() and Clinic.fail() methods. Add filename parameter to BlockParser constructor. Add BlockParser.fail() method. Add DSLParser.fail() method. Pass lineno parameter to DSLParser.format_docstring(): more accurate error reporting. Convert a few DSLParser static methods to regular method to be able to call self.fail(). Language.render() clinic parameter is now required: None is no longer accepted. Remove warn() function. Remove global variable 'clinic'. fail() and warn() methods get filename and line number from the instance on which the method is called, rather than relying on a global variable 'clinic'. Issue: gh-113317
Open Graph Description: Add Clinic.warn() and Clinic.fail() methods. Add filename parameter to BlockParser constructor. Add BlockParser.fail() method. Add DSLParser.fail() method. Pass lineno parameter to DSLParser.format...
X Description: Add Clinic.warn() and Clinic.fail() methods. Add filename parameter to BlockParser constructor. Add BlockParser.fail() method. Add DSLParser.fail() method. Pass lineno parameter to DSLParser.format...
Opengraph URL: https://github.com/python/cpython/pull/114752
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:59110b44-5da6-e03d-4646-d93b6f142208 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | E9BE:B07CA:5A1572:7EFE44:696A0F9A |
| html-safe-nonce | 6c428cdcfae26942dd6d039ffe706b9963dc592ddbabecdb3f72ec3fd55b5aa9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOUJFOkIwN0NBOjVBMTU3Mjo3RUZFNDQ6Njk2QTBGOUEiLCJ2aXNpdG9yX2lkIjoiMjI2ODQ0MzY0Njk0OTQ2MTkxNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 18c43a1b192c02f42ad40c1dee80267001fed23b588de1c08f81644c61643ebd |
| hovercard-subject-tag | pull_request:1702240058 |
| 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/114752/checks |
| twitter:image | https://avatars.githubusercontent.com/u/194129?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/194129?s=400&v=4 |
| og:image:alt | Add Clinic.warn() and Clinic.fail() methods. Add filename parameter to BlockParser constructor. Add BlockParser.fail() method. Add DSLParser.fail() method. Pass lineno parameter to DSLParser.format... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 699227a00bbb7fe1eec276d2ae1c3a93068bc5ba483bd9dc4b2a27a8f4f2f595 |
| 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 | 7266b2d935baa1c6474b16dd9feaa5ca30607261 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width