Title: [C API] Avoid accessing PyObject and PyVarObject members directly: add Py_SET_TYPE() and Py_IS_TYPE(), disallow Py_TYPE(obj)=type · Issue #83754 · python/cpython · GitHub
Open Graph Title: [C API] Avoid accessing PyObject and PyVarObject members directly: add Py_SET_TYPE() and Py_IS_TYPE(), disallow Py_TYPE(obj)=type · Issue #83754 · python/cpython
X Title: [C API] Avoid accessing PyObject and PyVarObject members directly: add Py_SET_TYPE() and Py_IS_TYPE(), disallow Py_TYPE(obj)=type · Issue #83754 · python/cpython
Description: BPO 39573 Nosy @vstinner PRs #18388#18389#18390#18391#18392#18393#18394#18398#18400#18402#18411#18419#18488#18496#18507#18508#18521#18601#18789#18798#18799#18804#18809#19882#19975#20290#20391#20429#20610#21262#21433#23366#23375#26493#265...
Open Graph Description: BPO 39573 Nosy @vstinner PRs #18388#18389#18390#18391#18392#18393#18394#18398#18400#18402#18411#18419#18488#18496#18507#18508#18521#18601#18789#18798#18799#18804#18809#19882#19975#20290#20391#20429...
X Description: BPO 39573 Nosy @vstinner PRs #18388#18389#18390#18391#18392#18393#18394#18398#18400#18402#18411#18419#18488#18496#18507#18508#18521#18601#18789#18798#18799#18804#18809#19882#19975#20290#20391#20429...
Opengraph URL: https://github.com/python/cpython/issues/83754
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[C API] Avoid accessing PyObject and PyVarObject members directly: add Py_SET_TYPE() and Py_IS_TYPE(), disallow Py_TYPE(obj)=type","articleBody":"BPO | [39573](https://bugs.python.org/issue39573)\n--- | :---\nNosy | @vstinner\nPRs | \u003cli\u003epython/cpython#18388\u003c/li\u003e\u003cli\u003epython/cpython#18389\u003c/li\u003e\u003cli\u003epython/cpython#18390\u003c/li\u003e\u003cli\u003epython/cpython#18391\u003c/li\u003e\u003cli\u003epython/cpython#18392\u003c/li\u003e\u003cli\u003epython/cpython#18393\u003c/li\u003e\u003cli\u003epython/cpython#18394\u003c/li\u003e\u003cli\u003epython/cpython#18398\u003c/li\u003e\u003cli\u003epython/cpython#18400\u003c/li\u003e\u003cli\u003epython/cpython#18402\u003c/li\u003e\u003cli\u003epython/cpython#18411\u003c/li\u003e\u003cli\u003epython/cpython#18419\u003c/li\u003e\u003cli\u003epython/cpython#18488\u003c/li\u003e\u003cli\u003epython/cpython#18496\u003c/li\u003e\u003cli\u003epython/cpython#18507\u003c/li\u003e\u003cli\u003epython/cpython#18508\u003c/li\u003e\u003cli\u003epython/cpython#18521\u003c/li\u003e\u003cli\u003epython/cpython#18601\u003c/li\u003e\u003cli\u003epython/cpython#18789\u003c/li\u003e\u003cli\u003epython/cpython#18798\u003c/li\u003e\u003cli\u003epython/cpython#18799\u003c/li\u003e\u003cli\u003epython/cpython#18804\u003c/li\u003e\u003cli\u003epython/cpython#18809\u003c/li\u003e\u003cli\u003epython/cpython#19882\u003c/li\u003e\u003cli\u003epython/cpython#19975\u003c/li\u003e\u003cli\u003epython/cpython#20290\u003c/li\u003e\u003cli\u003epython/cpython#20391\u003c/li\u003e\u003cli\u003epython/cpython#20429\u003c/li\u003e\u003cli\u003epython/cpython#20610\u003c/li\u003e\u003cli\u003epython/cpython#21262\u003c/li\u003e\u003cli\u003epython/cpython#21433\u003c/li\u003e\u003cli\u003epython/cpython#23366\u003c/li\u003e\u003cli\u003epython/cpython#23375\u003c/li\u003e\u003cli\u003epython/cpython#26493\u003c/li\u003e\u003cli\u003epython/cpython#26550\u003c/li\u003e\u003cli\u003epython/cpython#26596\u003c/li\u003e\u003cli\u003epython/cpython#28128\u003c/li\u003e\n\n\u003csup\u003e*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*\u003c/sup\u003e\n\n\u003cdetails\u003e\u003csummary\u003eShow more details\u003c/summary\u003e\u003cp\u003e\n\nGitHub fields:\n```python\nassignee = None\nclosed_at = \u003cDate 2021-09-08.16:32:15.871\u003e\ncreated_at = \u003cDate 2020-02-06.23:07:12.131\u003e\nlabels = ['expert-C-API', '3.11']\ntitle = '[C API] Avoid accessing PyObject and PyVarObject members directly: add Py_SET_TYPE() and Py_IS_TYPE(), disallow Py_TYPE(obj)=type'\nupdated_at = \u003cDate 2022-01-20.00:24:00.180\u003e\nuser = 'https://github.com/vstinner'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2022-01-20.00:24:00.180\u003e\nactor = 'vstinner'\nassignee = 'none'\nclosed = True\nclosed_date = \u003cDate 2021-09-08.16:32:15.871\u003e\ncloser = 'vstinner'\ncomponents = ['C API']\ncreation = \u003cDate 2020-02-06.23:07:12.131\u003e\ncreator = 'vstinner'\ndependencies = []\nfiles = []\nhgrepos = []\nissue_num = 39573\nkeywords = ['patch']\nmessage_count = 96.0\nmessages = ['361513', '361514', '361515', '361516', '361517', '361518', '361519', '361522', '361523', '361526', '361527', '361529', '361531', '361540', '361549', '361555', '361557', '361590', '361593', '361607', '361611', '361626', '361631', '361639', '361904', '361960', '361961', '361963', '361964', '361965', '361971', '361977', '361987', '361988', '362033', '362034', '362133', '362134', '362166', '362212', '362216', '362445', '363345', '363494', '363564', '365690', '366473', '366493', '368047', '369896', '369898', '370074', '370303', '370638', '370663', '370665', '370666', '370671', '370729', '370902', '370932', '372308', '373460', '379675', '379679', '379680', '379757', '379759', '381337', '381345', '381365', '381374', '381403', '381404', '382260', '382534', '382539', '382780', '382781', '382783', '394954', '394971', '395018', '395205', '395206', '395287', '395323', '395536', '401365', '401370', '401378', '401395', '401396', '401399', '403252', '410995']\nnosy_count = 1.0\nnosy_names = ['vstinner']\npr_nums = ['18388', '18389', '18390', '18391', '18392', '18393', '18394', '18398', '18400', '18402', '18411', '18419', '18488', '18496', '18507', '18508', '18521', '18601', '18789', '18798', '18799', '18804', '18809', '19882', '19975', '20290', '20391', '20429', '20610', '21262', '21433', '23366', '23375', '26493', '26550', '26596', '28128']\npriority = 'normal'\nresolution = 'fixed'\nstage = 'resolved'\nstatus = 'closed'\nsuperseder = None\ntype = None\nurl = 'https://bugs.python.org/issue39573'\nversions = ['Python 3.11']\n```\n\n\u003c/p\u003e\u003c/details\u003e\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-120599\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2020-02-06T23:07:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":96},"url":"https://github.com/83754/cpython/issues/83754"}
| 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:5a619dfa-195a-bb36-ce8c-8abc72852bd2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E2B0:11141E:18CEC36:2133DE1:6969AFEC |
| html-safe-nonce | 2789200ded312935f889247e2cfb993d493999ebd66847b951dadcb14a24d3e6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMkIwOjExMTQxRToxOENFQzM2OjIxMzNERTE6Njk2OUFGRUMiLCJ2aXNpdG9yX2lkIjoiMTI4OTI4ODQyNzQyMDM2NDc4MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1dcfda59cf6d19c04e3ff3e909ec2ba8d53f7ccf6034816dc770f034d4798b31 |
| hovercard-subject-tag | issue:1199030155 |
| 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/83754/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ac17b3e5abc2b7018f62cbe4c15bb22939c302f30c3fb8338e170582f3a6df5d/python/cpython/issues/83754 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ac17b3e5abc2b7018f62cbe4c15bb22939c302f30c3fb8338e170582f3a6df5d/python/cpython/issues/83754 |
| og:image:alt | BPO 39573 Nosy @vstinner PRs #18388#18389#18390#18391#18392#18393#18394#18398#18400#18402#18411#18419#18488#18496#18507#18508#18521#18601#18789#18798#18799#18804#18809#19882#19975#20290#20391#20429... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | b23b8fcc855cd29bb04d6c94aafa62d336bf44eefa8229444eecc968cad03aee |
| 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 | 0672399d88424758731ec07fe24509e23bb17fb5 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width