Title: `sys.flags.gil` should be a "sequence" attribute · Issue #122575 · python/cpython · GitHub
Open Graph Title: `sys.flags.gil` should be a "sequence" attribute · Issue #122575 · python/cpython
X Title: `sys.flags.gil` should be a "sequence" attribute · Issue #122575 · python/cpython
Description: Bug report sys.flags is a PyStructSequence. PyStructSequence is similar to a named tuple, but it can have attributes that are not part of the sequence. Currently, sys.flags.gil is not a "sequence" attribute: >>> import sys >>> sys.flags ...
Open Graph Description: Bug report sys.flags is a PyStructSequence. PyStructSequence is similar to a named tuple, but it can have attributes that are not part of the sequence. Currently, sys.flags.gil is not a "sequence" ...
X Description: Bug report sys.flags is a PyStructSequence. PyStructSequence is similar to a named tuple, but it can have attributes that are not part of the sequence. Currently, sys.flags.gil is not a "seque...
Opengraph URL: https://github.com/python/cpython/issues/122575
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`sys.flags.gil` should be a \"sequence\" attribute","articleBody":"# Bug report\n\n`sys.flags` is a [`PyStructSequence`](https://docs.python.org/3/c-api/tuple.html#struct-sequence-objects). `PyStructSequence` is similar to a named tuple, but it can have attributes that are not part of the sequence.\n\nCurrently, `sys.flags.gil` is not a \"sequence\" attribute:\n\n```python\n\u003e\u003e\u003e import sys\n\u003e\u003e\u003e sys.flags\nsys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0, dev_mode=False, utf8_mode=0, warn_default_encoding=0, safe_path=False, int_max_str_digits=4300)\n```\n\nI think this was an oversight. We forgot to update the `n_in_sequence` field from 18 to 19 in gh-116338:\n\nhttps://github.com/python/cpython/blob/fda6bd842a2b93a501526f1b830eb900d935ac73/Python/sysmodule.c#L3123-L3128\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-122576\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/colesbury","@type":"Person","name":"colesbury"},"datePublished":"2024-08-01T18:30:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/122575/cpython/issues/122575"}
| 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:0cf941b1-e119-b5a6-fa15-e844ba42fcc1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 90A6:EFB79:90BAEC:C16952:6969BF49 |
| html-safe-nonce | b9a7c78b3ad0f7d9934dc18f524459201f60eb55478989b9d4750647b01f7b7b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MEE2OkVGQjc5OjkwQkFFQzpDMTY5NTI6Njk2OUJGNDkiLCJ2aXNpdG9yX2lkIjoiMTgyODY4Nzc3ODA3NzU4OTMyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bd23cbd6f4529cc238ad0ee47a3b60bbb854d6ee4d5c1629987707d876443f6f |
| hovercard-subject-tag | issue:2443126282 |
| 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/122575/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d7ce602b987db834b2a55d784b8015e724b62f8f4249b63624babe16fd219724/python/cpython/issues/122575 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d7ce602b987db834b2a55d784b8015e724b62f8f4249b63624babe16fd219724/python/cpython/issues/122575 |
| og:image:alt | Bug report sys.flags is a PyStructSequence. PyStructSequence is similar to a named tuple, but it can have attributes that are not part of the sequence. Currently, sys.flags.gil is not a "sequence" ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | colesbury |
| hostname | github.com |
| expected-hostname | github.com |
| None | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| 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 | 83c08c21cdda978090dc44364b71aa5bc6dcea79 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width