Title: Errors in specialisation stats for STORE_ATTR · Issue #100459 · python/cpython · GitHub
Open Graph Title: Errors in specialisation stats for STORE_ATTR · Issue #100459 · python/cpython
X Title: Errors in specialisation stats for STORE_ATTR · Issue #100459 · python/cpython
Description: There seem to be some copy-paste errors in specialize.c, which cause failures for STORE_ATTR to be attributed to LOAD_ATTR: @@ -860,7 +860,7 @@ _Py_Specialize_StoreAttr(PyObject *owner, _Py_CODEUNIT *instr, PyObject *name) // We *might* ...
Open Graph Description: There seem to be some copy-paste errors in specialize.c, which cause failures for STORE_ATTR to be attributed to LOAD_ATTR: @@ -860,7 +860,7 @@ _Py_Specialize_StoreAttr(PyObject *owner, _Py_CODEUNI...
X Description: There seem to be some copy-paste errors in specialize.c, which cause failures for STORE_ATTR to be attributed to LOAD_ATTR: @@ -860,7 +860,7 @@ _Py_Specialize_StoreAttr(PyObject *owner, _Py_CODEUNI...
Opengraph URL: https://github.com/python/cpython/issues/100459
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Errors in specialisation stats for STORE_ATTR","articleBody":"There seem to be some copy-paste errors in specialize.c, which cause failures for STORE_ATTR to be attributed to LOAD_ATTR:\r\n\r\n```\r\n@@ -860,7 +860,7 @@ _Py_Specialize_StoreAttr(PyObject *owner, _Py_CODEUNIT *instr, PyObject *name)\r\n // We *might* not really need this check, but we inherited it from\r\n // PyObject_GenericSetAttr and friends... and this way we still do the\r\n // right thing if someone forgets to call PyType_Ready(type):\r\n- SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_OTHER);\r\n+ SPECIALIZATION_FAIL(STORE_ATTR, SPEC_FAIL_OTHER);\r\n goto fail;\r\n }\r\n if (PyModule_CheckExact(owner)) {\r\n@@ -915,16 +915,16 @@ _Py_Specialize_StoreAttr(PyObject *owner, _Py_CODEUNIT *instr, PyObject *name)\r\n SPECIALIZATION_FAIL(STORE_ATTR, SPEC_FAIL_OVERRIDDEN);\r\n goto fail;\r\n case BUILTIN_CLASSMETHOD:\r\n- SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_ATTR_BUILTIN_CLASS_METHOD_OBJ);\r\n+ SPECIALIZATION_FAIL(STORE_ATTR, SPEC_FAIL_ATTR_BUILTIN_CLASS_METHOD_OBJ);\r\n goto fail;\r\n case PYTHON_CLASSMETHOD:\r\n- SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_ATTR_CLASS_METHOD_OBJ);\r\n+ SPECIALIZATION_FAIL(STORE_ATTR, SPEC_FAIL_ATTR_CLASS_METHOD_OBJ);\r\n goto fail;\r\n case NON_OVERRIDING:\r\n- SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_ATTR_CLASS_ATTR_DESCRIPTOR);\r\n+ SPECIALIZATION_FAIL(STORE_ATTR, SPEC_FAIL_ATTR_CLASS_ATTR_DESCRIPTOR);\r\n goto fail;\r\n case NON_DESCRIPTOR:\r\n- SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_ATTR_CLASS_ATTR_SIMPLE);\r\n+ SPECIALIZATION_FAIL(STORE_ATTR, SPEC_FAIL_ATTR_CLASS_ATTR_SIMPLE);\r\n goto fail;\r\n case ABSENT:\r\n if (specialize_dict_access(owner, instr, type, kind, name, STORE_ATTR,\r\n```\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-100460\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/iritkatriel","@type":"Person","name":"iritkatriel"},"datePublished":"2022-12-23T14:12:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/100459/cpython/issues/100459"}
| 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:2c19ff76-b3fd-604d-9e71-6a0551fe30cb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DBCC:D92A5:441A49:60296D:6968DADB |
| html-safe-nonce | e34a8b507be4de4cf47fc45d0fd5795ba58caafa0d4244d2b551f9a7ea1ac3b3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkNDOkQ5MkE1OjQ0MUE0OTo2MDI5NkQ6Njk2OERBREIiLCJ2aXNpdG9yX2lkIjoiNzc3Mzk5MTg2MzgxMzk4NzAzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 419f6c96d772d17a0e7ac4f4fd0d4a6bd5fee5121b46acc7f79181bbd4427054 |
| hovercard-subject-tag | issue:1509392062 |
| 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/100459/issue_layout |
| twitter:image | https://opengraph.githubassets.com/86d204dc977c6b2f5f71e93d8c349c7aa2e37e8ab223878dec606c0b68aa57b7/python/cpython/issues/100459 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/86d204dc977c6b2f5f71e93d8c349c7aa2e37e8ab223878dec606c0b68aa57b7/python/cpython/issues/100459 |
| og:image:alt | There seem to be some copy-paste errors in specialize.c, which cause failures for STORE_ATTR to be attributed to LOAD_ATTR: @@ -860,7 +860,7 @@ _Py_Specialize_StoreAttr(PyObject *owner, _Py_CODEUNI... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | iritkatriel |
| 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 | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width