| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:e800403a-6c68-f8f7-7e63-6073d725a94f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BC90:161320:188997D:207B332:6B021017 |
| html-safe-nonce | 47ede4c5b379c2a854de6db87dcf9a840561dafb888de415edd0b73045fa4427 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzkwOjE2MTMyMDoxODg5OTdEOjIwN0IzMzI6NkIwMjEwMTciLCJ2aXNpdG9yX2lkIjoiNjgzNDgwMjI5NDI1MzU1NTczNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dca024d86cd6adf066ad9e02b48d7cec2af950a31e01ffe24ef3be02430e98b2 |
| hovercard-subject-tag | pull_request:4131829658 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/154684/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/4622c2dde08c0fb1d9a587761729a533278251dccb1d8a67356473d8bab5b075/python/cpython/pull/154684 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4622c2dde08c0fb1d9a587761729a533278251dccb1d8a67356473d8bab5b075/python/cpython/pull/154684 |
| og:image:alt | The current PyStructSequence related code is heavily under the assumptions:
{every unnamed field} in {visible range}
n_unnamed <= n_in_sequence and n_in_sequence <= n_fields
n_in_sequence &g... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | XuehaiPan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-cache |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/python/cpython/pull/154684#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F154684 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F154684 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/154684 |
| Reload | https://github.com/python/cpython/pull/154684 |
| Reload | https://github.com/python/cpython/pull/154684 |
| python | https://github.com/python |
| cpython | https://github.com/python/cpython |
| Code | https://github.com/python/cpython |
| Issues5k+ (5k+) | https://github.com/python/cpython/issues |
| Pull requests2.4k (2.4k) | https://github.com/python/cpython/pulls |
| Actions | https://github.com/python/cpython/actions |
| Projects | https://github.com/python/cpython/projects |
| Security and quality | https://github.com/python/cpython/security |
| Insights | https://github.com/python/cpython/insights |
| https://github.com/python/cpython |
| XuehaiPan | https://github.com/XuehaiPan |
| python:main | https://github.com/python/cpython/tree/main |
| XuehaiPan:fix-structseq-validate-desc | https://github.com/XuehaiPan/cpython/tree/fix-structseq-validate-desc |
| Conversation | https://github.com/python/cpython/pull/154684 |
| Commits17 (17) | https://github.com/python/cpython/pull/154684/commits |
| Checks | https://github.com/python/cpython/pull/154684/checks |
| Files changed | https://github.com/python/cpython/pull/154684/files |
| gh-154387: validate PyStructSequence_Desc field invariants | https://github.com/python/cpython/pull/154684#top |
| XuehaiPan | https://github.com/XuehaiPan |
| python:main | https://github.com/python/cpython/tree/main |
| XuehaiPan:fix-structseq-validate-desc | https://github.com/XuehaiPan/cpython/tree/fix-structseq-validate-desc |
|
| https://github.com/XuehaiPan |
| XuehaiPan | https://github.com/XuehaiPan |
| Jul 25, 2026 | https://github.com/python/cpython/pull/154684#issue-4975103866 |
| Please reload this page | https://github.com/python/cpython/pull/154684 |
| structseq_repr mislabels unnamed PyStructSequence fields (e.g. os.stat_result slots 7–9) #154387 | https://github.com/python/cpython/issues/154387 |
| Please reload this page | https://github.com/python/cpython/pull/154684 |
|
| https://github.com/XuehaiPan |
| fix(structseq): validate PyStructSequence_Desc field invariants | https://github.com/python/cpython/pull/154684/commits/4260f7632519e27e9f0f2b9599823355c6111693 |
| 4260f76 | https://github.com/python/cpython/pull/154684/commits/4260f7632519e27e9f0f2b9599823355c6111693 |
| https://github.com/XuehaiPan |
| XuehaiPan | https://github.com/XuehaiPan |
| ZeroIntensity | https://github.com/ZeroIntensity |
| code owner | https://github.com/python/cpython/blob/bff005123119d5a010774f5dc9a181029024c2ac/.github/CODEOWNERS#L114 |
| July 25, 2026 09:00 | https://github.com/python/cpython/pull/154684#event-28471911893 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
Jul 25, 2026
| https://github.com/python/cpython/pull/154684#ref-issue-4940987476 |
|
structseq_repr mislabels unnamed PyStructSequence fields (e.g. os.stat_result slots 7–9)
#154387
| https://github.com/python/cpython/issues/154387 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
awaiting review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22 |
| Jul 25, 2026 | https://github.com/python/cpython/pull/154684#event-28471913556 |
| https://github.com/apps/read-the-docs-community |
| read-the-docs-community | https://github.com/apps/read-the-docs-community |
| Jul 25, 2026 | https://github.com/python/cpython/pull/154684#issuecomment-5077862295 |
| Please reload this page | https://github.com/python/cpython/pull/154684 |
| cpython-previews | https://app.readthedocs.org/projects/cpython-previews/ |
| #35958157 | https://app.readthedocs.org/projects/cpython-previews/builds/35958157/ |
| eaae786 | https://github.com/python/cpython/commit/eaae786f8d8db38c3711e4154e7b9ace2d5f91aa |
| main | https://cpython-previews.readthedocs.io/en/main/ |
| bff0051 | https://github.com/python/cpython/commit/bff005123119d5a010774f5dc9a181029024c2ac |
| 🔍 Preview build | https://cpython-previews--154684.org.readthedocs.build/en/154684/ |
| builtins/constants.html | https://cpython-previews--154684.org.readthedocs.build/en/154684/builtins/constants.html |
| builtins/exceptions.html | https://cpython-previews--154684.org.readthedocs.build/en/154684/builtins/exceptions.html |
| builtins/functions.html | https://cpython-previews--154684.org.readthedocs.build/en/154684/builtins/functions.html |
| builtins/index.html | https://cpython-previews--154684.org.readthedocs.build/en/154684/builtins/index.html |
| builtins/stdtypes.html | https://cpython-previews--154684.org.readthedocs.build/en/154684/builtins/stdtypes.html |
| builtins/threadsafety.html | https://cpython-previews--154684.org.readthedocs.build/en/154684/builtins/threadsafety.html |
| builtins/time-complexity.html | https://cpython-previews--154684.org.readthedocs.build/en/154684/builtins/time-complexity.html |
| c-api/pyexpat.html | https://cpython-previews--154684.org.readthedocs.build/en/154684/c-api/pyexpat.html |
| library/this.html | https://cpython-previews--154684.org.readthedocs.build/en/154684/library/this.html |
| library/time-complexity.html | https://cpython-previews--154684.org.readthedocs.build/en/154684/library/time-complexity.html |
| glossary.html | https://cpython-previews--154684.org.readthedocs.build/en/154684/glossary.html |
| index.html | https://cpython-previews--154684.org.readthedocs.build/en/154684/index.html |
| license.html | https://cpython-previews--154684.org.readthedocs.build/en/154684/license.html |
| py-modindex.html | https://cpython-previews--154684.org.readthedocs.build/en/154684/py-modindex.html |
| _static/tachyon-example-heatmap.html | https://cpython-previews--154684.org.readthedocs.build/en/154684/_static/tachyon-example-heatmap.html |
| c-api/arg.html | https://cpython-previews--154684.org.readthedocs.build/en/154684/c-api/arg.html |
| c-api/bool.html | https://cpython-previews--154684.org.readthedocs.build/en/154684/c-api/bool.html |
| c-api/buffer.html | https://cpython-previews--154684.org.readthedocs.build/en/154684/c-api/buffer.html |
| c-api/bytearray.html | https://cpython-previews--154684.org.readthedocs.build/en/154684/c-api/bytearray.html |
| c-api/bytes.html | https://cpython-previews--154684.org.readthedocs.build/en/154684/c-api/bytes.html |
| Please reload this page | https://github.com/python/cpython/pull/154684 |
| XuehaiPan | https://github.com/XuehaiPan |
| July 25, 2026 18:06 | https://github.com/python/cpython/pull/154684#commits-pushed-a06b349 |
|
| https://github.com/XuehaiPan |
| fix(structseq): reject negative n_in_sequence and fix int format spec… | https://github.com/python/cpython/pull/154684/commits/a06b34929dd636fa5a1397d6d88c2e117d1efc13 |
| a06b349 | https://github.com/python/cpython/pull/154684/commits/a06b34929dd636fa5a1397d6d88c2e117d1efc13 |
|
| https://github.com/XuehaiPan |
| fix: remove test_ prefix for functions in _testcapi | https://github.com/python/cpython/pull/154684/commits/29c4c2e77de7b80c04e2adc966a6dd6f8cf910e5 |
| 29c4c2e | https://github.com/python/cpython/pull/154684/commits/29c4c2e77de7b80c04e2adc966a6dd6f8cf910e5 |
|
| https://github.com/XuehaiPan |
| Merge remote-tracking branch 'origin/main' into fix-structseq-validat… | https://github.com/python/cpython/pull/154684/commits/34ae4bac43b07fc3ab62757df359f2a7db91a18f |
| 34ae4ba | https://github.com/python/cpython/pull/154684/commits/34ae4bac43b07fc3ab62757df359f2a7db91a18f |
|
| https://github.com/XuehaiPan |
| Merge branch 'main' into fix-structseq-validate-desc | https://github.com/python/cpython/pull/154684/commits/b49a073db2571ed8fe5b2e9089ce258f868d9f2b |
| b49a073 | https://github.com/python/cpython/pull/154684/commits/b49a073db2571ed8fe5b2e9089ce258f868d9f2b |
|
| https://github.com/XuehaiPan |
| Merge remote-tracking branch 'upstream/main' into fix-structseq-valid… | https://github.com/python/cpython/pull/154684/commits/de1210f88c118d3538a4692e8376e69c9fb7cb78 |
| de1210f | https://github.com/python/cpython/pull/154684/commits/de1210f88c118d3538a4692e8376e69c9fb7cb78 |
|
| https://github.com/XuehaiPan |
| Merge remote-tracking branch 'upstream/main' into fix-structseq-valid… | https://github.com/python/cpython/pull/154684/commits/0d573e948940b46b74834be3d97bc648306039a0 |
| 0d573e9 | https://github.com/python/cpython/pull/154684/commits/0d573e948940b46b74834be3d97bc648306039a0 |
|
| https://github.com/XuehaiPan |
| ci: try fix ci | https://github.com/python/cpython/pull/154684/commits/57095f02ba8a115d370bf009ba848d9d3847487f |
| 57095f0 | https://github.com/python/cpython/pull/154684/commits/57095f02ba8a115d370bf009ba848d9d3847487f |
| https://github.com/XuehaiPan |
| XuehaiPan | https://github.com/XuehaiPan |
|
Jul 29, 2026
| https://github.com/python/cpython/pull/154684#pullrequestreview-4804195051 |
|
View reviewed changes
| https://github.com/python/cpython/pull/154684/files/57095f02ba8a115d370bf009ba848d9d3847487f |
| Lib/test/test_class.py | https://github.com/python/cpython/pull/154684/files/57095f02ba8a115d370bf009ba848d9d3847487f#diff-bf3be6f0945680546707ba6d4c9bb4d90c4381ad6fe342a45fbeab47a536e18e |
| Please reload this page | https://github.com/python/cpython/pull/154684 |
| https://github.com/XuehaiPan |
| XuehaiPan | https://github.com/XuehaiPan |
|
Jul 29, 2026
| https://github.com/python/cpython/pull/154684#ref-pullrequest-4975321299 |
|
gh-154387: fix structseq_repr by labeling unnamed fields in repr as
#154687
| https://github.com/python/cpython/pull/154687 |
| XuehaiPan | https://github.com/XuehaiPan |
| August 4, 2026 14:58 | https://github.com/python/cpython/pull/154684#commits-pushed-7f8b035 |
|
| https://github.com/XuehaiPan |
| Merge remote-tracking branch 'upstream/main' into fix-structseq-valid… | https://github.com/python/cpython/pull/154684/commits/7f8b0356f7cfe0ebd4309c47780e8179e5665e52 |
| 7f8b035 | https://github.com/python/cpython/pull/154684/commits/7f8b0356f7cfe0ebd4309c47780e8179e5665e52 |
|
| https://github.com/XuehaiPan |
| ci: try fix ci | https://github.com/python/cpython/pull/154684/commits/d5771c07b488be88a5268fc1af9d66802df71626 |
| d5771c0 | https://github.com/python/cpython/pull/154684/commits/d5771c07b488be88a5268fc1af9d66802df71626 |
|
| https://github.com/XuehaiPan |
| Merge remote-tracking branch 'upstream/main' into fix-structseq-valid… | https://github.com/python/cpython/pull/154684/commits/7508a14052d484ae866ea9cde9f46ca6efaef980 |
| 7508a14 | https://github.com/python/cpython/pull/154684/commits/7508a14052d484ae866ea9cde9f46ca6efaef980 |
|
| https://github.com/XuehaiPan |
| Merge remote-tracking branch 'upstream/main' into fix-structseq-valid… | https://github.com/python/cpython/pull/154684/commits/c1c57956cc32dee51195515596a3831e5394cf42 |
| c1c5795 | https://github.com/python/cpython/pull/154684/commits/c1c57956cc32dee51195515596a3831e5394cf42 |
|
| https://github.com/XuehaiPan |
| Merge branch 'main' into fix-structseq-validate-desc | https://github.com/python/cpython/pull/154684/commits/9ba8e7c82eb62398176ea90ff4f387bc19fbeb4d |
| 9ba8e7c | https://github.com/python/cpython/pull/154684/commits/9ba8e7c82eb62398176ea90ff4f387bc19fbeb4d |
|
| https://github.com/XuehaiPan |
| Merge branch 'main' into fix-structseq-validate-desc | https://github.com/python/cpython/pull/154684/commits/245642f077398e9bbf81569923774da1980480d3 |
| 245642f | https://github.com/python/cpython/pull/154684/commits/245642f077398e9bbf81569923774da1980480d3 |
|
| https://github.com/XuehaiPan |
| Merge remote-tracking branch 'upstream/main' into fix-structseq-valid… | https://github.com/python/cpython/pull/154684/commits/54a1721495ab1c7cd218262a959d6425534b5432 |
| 54a1721 | https://github.com/python/cpython/pull/154684/commits/54a1721495ab1c7cd218262a959d6425534b5432 |
|
| https://github.com/XuehaiPan |
| Merge remote-tracking branch 'upstream/main' into fix-structseq-valid… | https://github.com/python/cpython/pull/154684/commits/ba9b93e7d2fe83f6288eddfce4c48f46168922e6 |
| ba9b93e | https://github.com/python/cpython/pull/154684/commits/ba9b93e7d2fe83f6288eddfce4c48f46168922e6 |
|
| https://github.com/XuehaiPan |
| Merge remote-tracking branch 'upstream/main' into fix-structseq-valid… | https://github.com/python/cpython/pull/154684/commits/eaae786f8d8db38c3711e4154e7b9ace2d5f91aa |
| eaae786 | https://github.com/python/cpython/pull/154684/commits/eaae786f8d8db38c3711e4154e7b9ace2d5f91aa |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F154684 |
|
| https://github.com/ZeroIntensity |
|
ZeroIntensity
| https://github.com/ZeroIntensity |
| Please reload this page | https://github.com/python/cpython/pull/154684 |
|
awaiting review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22 |
| Please reload this page | https://github.com/python/cpython/pull/154684 |
|
| https://github.com/XuehaiPan |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |