Title: PEP 709 behavior change around mangling · Issue #104604 · python/cpython · GitHub
Open Graph Title: PEP 709 behavior change around mangling · Issue #104604 · python/cpython
X Title: PEP 709 behavior change around mangling · Issue #104604 · python/cpython
Description: Another bug with comprehension inlining. I made the fuzzer (carljm/compgenerator#1) use __a and __b as names in the hope of finding bugs around name mangling and got this one: class __a: __a = (1)[[__a for __b in [1]]] = 1 On #104602: >>...
Open Graph Description: Another bug with comprehension inlining. I made the fuzzer (carljm/compgenerator#1) use __a and __b as names in the hope of finding bugs around name mangling and got this one: class __a: __a = (1)[...
X Description: Another bug with comprehension inlining. I made the fuzzer (carljm/compgenerator#1) use __a and __b as names in the hope of finding bugs around name mangling and got this one: class __a: __a = (1)[...
Opengraph URL: https://github.com/python/cpython/issues/104604
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PEP 709 behavior change around mangling","articleBody":"Another bug with comprehension inlining.\r\n\r\nI made the fuzzer (https://github.com/carljm/compgenerator/pull/1) use `__a` and `__b` as names in the hope of finding bugs around name mangling and got this one:\r\n\r\n```python\r\nclass __a:\r\n __a = (1)[[__a for __b in [1]]] = 1\r\n```\r\n\r\nOn #104602:\r\n\r\n```pycon\r\n\u003e\u003e\u003e class __a:\r\n... __a = (1)[[__a for __b in [1]]] = 1\r\n... \r\nTraceback (most recent call last):\r\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\n File \"\u003cstdin\u003e\", line 2, in __a\r\nTypeError: 'int' object does not support item assignment\r\n```\r\n\r\nOn 3.11:\r\n```pycon\r\n\u003e\u003e\u003e class __a:\r\n... __a = (1)[[__a for __b in [1]]] = 1\r\n... \r\nTraceback (most recent call last):\r\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\n File \"\u003cstdin\u003e\", line 2, in __a\r\n File \"\u003cstdin\u003e\", line 2, in \u003clistcomp\u003e\r\nNameError: name '_a__a' is not defined. Did you mean: '_a__b'?\r\n```\r\n\r\nI think that means we're missing some name mangling, but haven't thought too deeply about this yet.","author":{"url":"https://github.com/JelleZijlstra","@type":"Person","name":"JelleZijlstra"},"datePublished":"2023-05-18T05:40:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/104604/cpython/issues/104604"}
| 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:abc45025-8fef-5d1d-dcd2-ca2f428fce7c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C4D0:B6892:E95CB1:13D8904:6969F1EC |
| html-safe-nonce | 406eb37e91749a2fdf24d26ca090820a160eeb9c3c98e5305d9ca9f6a1df9766 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNEQwOkI2ODkyOkU5NUNCMToxM0Q4OTA0OjY5NjlGMUVDIiwidmlzaXRvcl9pZCI6Ijg0MDc5ODE2MzcxNjgxMzI1ODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4cc63b39f190bc63576483c85f6c25f1014df164c78d78b74a77d8ecf1a7f618 |
| hovercard-subject-tag | issue:1715017138 |
| 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/104604/issue_layout |
| twitter:image | https://opengraph.githubassets.com/96e1b2c2b8a8b619370eab455c6d010c75e22612ec573b2ad00683000e6f75b9/python/cpython/issues/104604 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/96e1b2c2b8a8b619370eab455c6d010c75e22612ec573b2ad00683000e6f75b9/python/cpython/issues/104604 |
| og:image:alt | Another bug with comprehension inlining. I made the fuzzer (carljm/compgenerator#1) use __a and __b as names in the hope of finding bugs around name mangling and got this one: class __a: __a = (1)[... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JelleZijlstra |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| 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 | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width