Title: Make the correct `call` specialization fail kind show up · Issue #99770 · python/cpython · GitHub
Open Graph Title: Make the correct `call` specialization fail kind show up · Issue #99770 · python/cpython
X Title: Make the correct `call` specialization fail kind show up · Issue #99770 · python/cpython
Description: The SPEC_FAIL_KIND is not displayed correctly due to not being adequately maintained. e.g cpython/Python/specialize.c Lines 1471 to 1482 in b1dcdef #ifdef Py_STATS static int builtin_call_fail_kind(int ml_flags) { switch (ml_flags & (MET...
Open Graph Description: The SPEC_FAIL_KIND is not displayed correctly due to not being adequately maintained. e.g cpython/Python/specialize.c Lines 1471 to 1482 in b1dcdef #ifdef Py_STATS static int builtin_call_fail_kind...
X Description: The SPEC_FAIL_KIND is not displayed correctly due to not being adequately maintained. e.g cpython/Python/specialize.c Lines 1471 to 1482 in b1dcdef #ifdef Py_STATS static int builtin_call_fail_kind...
Opengraph URL: https://github.com/python/cpython/issues/99770
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make the correct `call` specialization fail kind show up","articleBody":"The `SPEC_FAIL_KIND` is not displayed correctly due to not being adequately maintained.\r\ne.g\r\nhttps://github.com/python/cpython/blob/b1dcdefc3abf496a3e37e12b85dd9959f5b70341/Python/specialize.c#L1471-L1482\r\n\r\nAccording to the context, `METH_FASTCALL | METH_KEYWORDS` flag does not cause specialization failure.\r\nHowever, the `method descr` fail kind will also be shown as `SPEC_FAIL_CALL_PYCFUNCTION`, because `builtin_call_fail_kind` function is called incorrectly in the `specialize_method_descriptor` function.\r\n\r\nI'd like to submit a PR to fix them and make them display correctly.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-99771\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/penguin-wwy","@type":"Person","name":"penguin-wwy"},"datePublished":"2022-11-25T11:46:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/99770/cpython/issues/99770"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bdbe0382-c0fe-cb3f-99f8-a3ae627db4ac |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9EA0:1ABE3:AF5963:F4E779:6968DAE1 |
| html-safe-nonce | b750e61707b71368b58760a9d631612cd9516b3aa103a2db6370d6f4afaaf440 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUEwOjFBQkUzOkFGNTk2MzpGNEU3Nzk6Njk2OERBRTEiLCJ2aXNpdG9yX2lkIjoiNTkwNjM2NDc4MDEyODAzMzUwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1d987ed215f7884dd59711f1735bde57648ac2be3d9a94a55dc43a4852bf614e |
| hovercard-subject-tag | issue:1464434706 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/99770/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1f5261583787fb833e7515a3419c6f32131b94044f74a7e8be68b68d9b020ecd/python/cpython/issues/99770 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1f5261583787fb833e7515a3419c6f32131b94044f74a7e8be68b68d9b020ecd/python/cpython/issues/99770 |
| og:image:alt | The SPEC_FAIL_KIND is not displayed correctly due to not being adequately maintained. e.g cpython/Python/specialize.c Lines 1471 to 1482 in b1dcdef #ifdef Py_STATS static int builtin_call_fail_kind... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | penguin-wwy |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3c4e9f2fc1db52c609205138be6a397cfde4574cb54d53015014de30dd49f27e |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1fb1ea11f8c37dd4dd50347cca70d89824e93788 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width