| 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 | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:10b6f7d8-e42f-0f52-ecb9-68529abedec4 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A3AA:2E9D3B:BA7B1F:EA6229:6B0236AC |
| html-safe-nonce | 5e575748e984ec35dfed7252b0d4c071ddee9e6233b366e8138bd8b53da5ba02 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBM0FBOjJFOUQzQjpCQTdCMUY6RUE2MjI5OjZCMDIzNkFDIiwidmlzaXRvcl9pZCI6IjEyMTczNjIxMTMzNzk1Nzk1NjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b8f47cb8599343dfce88b7b826615050fecd9c080765b42ab29ff3347f6ab394 |
| hovercard-subject-tag | pull_request:1494078859 |
| 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 | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/108648/files |
| twitter:image | https://avatars.githubusercontent.com/u/11718923?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/11718923?s=400&v=4 |
| og:image:alt | Issue: gh-108647
Issue: gh-46145 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| 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 |
| Skip to content | https://github.com/python/cpython/pull/108648/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F108648%2Ffiles |
| 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%2F108648%2Ffiles |
| 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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/108648/files |
| Reload | https://github.com/python/cpython/pull/108648/files |
| Reload | https://github.com/python/cpython/pull/108648/files |
| 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 |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| FFY00 | https://github.com/FFY00 |
| python:main | https://github.com/python/cpython/tree/main |
| FFY00:gh-108647 | https://github.com/FFY00/cpython/tree/gh-108647 |
|
Conversation
9
| https://github.com/python/cpython/pull/108648 |
|
Commits
21
| https://github.com/python/cpython/pull/108648/commits |
|
Checks
0
| https://github.com/python/cpython/pull/108648/checks |
|
Files changed
| https://github.com/python/cpython/pull/108648/files |
| Please reload this page | https://github.com/python/cpython/pull/108648/files |
|
GH-46145: make PyStructSequence compatible with namedtuple
| https://github.com/python/cpython/pull/108648/files#top |
|
Show all changes
21 commits
| https://github.com/python/cpython/pull/108648/files |
|
668b9e5
add _fields to PyStructSequence
FFY00 Aug 29, 2023
| https://github.com/python/cpython/pull/108648/commits/668b9e5f3dbc1ab5fe8cac0252b05c58025cc44f |
|
6ed9a86
add _asdict to PyStructSequence
FFY00 Aug 29, 2023
| https://github.com/python/cpython/pull/108648/commits/6ed9a8600d65b553f75f0d2a150634870c255164 |
|
995a2d9
add news
FFY00 Aug 29, 2023
| https://github.com/python/cpython/pull/108648/commits/995a2d9a60d6b9f772d24b5526e3c8b9425d357c |
|
c7cf78b
add _field_defaults to PyStructSequence
FFY00 Aug 29, 2023
| https://github.com/python/cpython/pull/108648/commits/c7cf78b20bde75f6cc3dd25aaa3deec0241fc17e |
|
76c0581
(from review) use Py_DECREF instead of Py_XDECREF
FFY00 Aug 29, 2023
| https://github.com/python/cpython/pull/108648/commits/76c0581b6464dd493a36a08babb326e6e87b9716 |
|
5c3e4a5
add tests
FFY00 Aug 29, 2023
| https://github.com/python/cpython/pull/108648/commits/5c3e4a500b01f0df76551f6a57540ad9dd8f3a9a |
|
48b5c2a
use Py_DECREF instead of Py_XDECREF for defaults in initialize_struct…
FFY00 Aug 29, 2023
| https://github.com/python/cpython/pull/108648/commits/48b5c2a3d4937dc8865cd30f8553ac8a73eebce8 |
|
173546c
don't support namedtuple helpers when unnamed fields are present
FFY00 Aug 30, 2023
| https://github.com/python/cpython/pull/108648/commits/173546ce371c2b579bf4861feeb2a3022c191188 |
|
1a4d1f3
Merge branch 'main' into gh-108647
FFY00 Nov 17, 2024
| https://github.com/python/cpython/pull/108648/commits/1a4d1f30ce8e13fe6673533edf35a7110b2c652e |
|
c99456f
Fix linting
FFY00 Nov 17, 2024
| https://github.com/python/cpython/pull/108648/commits/c99456fef42a1c25c9498200e7b2a2b8e386d79b |
|
8881c96
Fix inconsistent style
FFY00 Nov 17, 2024
| https://github.com/python/cpython/pull/108648/commits/8881c96dcde81fa1d205ff223e95cc6f46f19204 |
|
0482b08
Fix comment typo
FFY00 Nov 17, 2024
| https://github.com/python/cpython/pull/108648/commits/0482b08f83c50a9e835a376e4402cabdf5d9e49f |
|
df1bd45
Join code that the comment is referring to
FFY00 Nov 17, 2024
| https://github.com/python/cpython/pull/108648/commits/df1bd45cfeefe1dad9830324eb6a4d442cf215e0 |
|
7ec1eb6
Simplify error description
FFY00 Nov 17, 2024
| https://github.com/python/cpython/pull/108648/commits/7ec1eb6ebc1ff7fe5819a900f1298e31bd31be23 |
|
d658233
Put _asdict after dunder methods in structseq_methods
FFY00 Nov 17, 2024
| https://github.com/python/cpython/pull/108648/commits/d6582334a29284b9b05eacd9aca775d85144d0cd |
|
81a07f2
Fix comment typo
FFY00 Nov 17, 2024
| https://github.com/python/cpython/pull/108648/commits/81a07f29d9b89ae0a8001d06ff62a90007a3ff0a |
|
de300a6
Fix news doc references
FFY00 Nov 17, 2024
| https://github.com/python/cpython/pull/108648/commits/de300a670663fa7f46eb2e79a094eb259e0f500a |
|
c11f544
Sync structseq_asdict error message
FFY00 Nov 17, 2024
| https://github.com/python/cpython/pull/108648/commits/c11f5441b8fd5e7c8b6c225fe64ef453c2be7e08 |
|
00ae6a8
Add extra checks to _asdict
FFY00 Nov 17, 2024
| https://github.com/python/cpython/pull/108648/commits/00ae6a8a514b36de6036976894716bf6c7d05382 |
|
7fc1885
Add _replace as an alias to __replace__
FFY00 Nov 17, 2024
| https://github.com/python/cpython/pull/108648/commits/7fc188557916ecb42cd2dc26e5fc73469b51374d |
|
684d2b2
Add structseq_make
FFY00 Nov 17, 2024
| https://github.com/python/cpython/pull/108648/commits/684d2b2dc0e4362f2709366ed1e1a60ae9ce7257 |
|
Clear filters
| https://github.com/python/cpython/pull/108648/files |
| Please reload this page | https://github.com/python/cpython/pull/108648/files |
| Please reload this page | https://github.com/python/cpython/pull/108648/files |
|
tuple.rst
| https://github.com/python/cpython/pull/108648/files#diff-1f9f4a69af6c7b0136a95e38b6e38fcc89564d912327acd8d0b9ba3047bd8b58 |
|
test_structseq.py
| https://github.com/python/cpython/pull/108648/files#diff-4a637803c745f86a5ed3a3bb336b12697a2635ab209994b8c989b8cfae0085ef |
|
2023-08-29-17-27-01.gh-issue-108647.gyXLmO.rst
| https://github.com/python/cpython/pull/108648/files#diff-bc79c3fd5a04ac60538c48b2010e9d38aa4ebd8b72b3c3c735675befa269450d |
|
_testcapimodule.c
| https://github.com/python/cpython/pull/108648/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f |
|
structseq.c
| https://github.com/python/cpython/pull/108648/files#diff-6088e5bc32426d02181ea56f5c4acbfc2fef3094c476b8081b22772fe205ccbd |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L114 |
| Doc/c-api/tuple.rst | https://github.com/python/cpython/pull/108648/files#diff-1f9f4a69af6c7b0136a95e38b6e38fcc89564d912327acd8d0b9ba3047bd8b58 |
|
View file
| https://github.com/python/cpython/blob/684d2b2dc0e4362f2709366ed1e1a60ae9ce7257/Doc/c-api/tuple.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/108648/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/108648/files#diff-1f9f4a69af6c7b0136a95e38b6e38fcc89564d912327acd8d0b9ba3047bd8b58 |
|
| https://github.com/python/cpython/pull/108648/files#diff-1f9f4a69af6c7b0136a95e38b6e38fcc89564d912327acd8d0b9ba3047bd8b58 |
| Lib/test/test_structseq.py | https://github.com/python/cpython/pull/108648/files#diff-4a637803c745f86a5ed3a3bb336b12697a2635ab209994b8c989b8cfae0085ef |
|
View file
| https://github.com/python/cpython/blob/684d2b2dc0e4362f2709366ed1e1a60ae9ce7257/Lib/test/test_structseq.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/108648/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/108648/files#diff-4a637803c745f86a5ed3a3bb336b12697a2635ab209994b8c989b8cfae0085ef |
|
| https://github.com/python/cpython/pull/108648/files#diff-4a637803c745f86a5ed3a3bb336b12697a2635ab209994b8c989b8cfae0085ef |
|
| https://github.com/python/cpython/pull/108648/files#diff-4a637803c745f86a5ed3a3bb336b12697a2635ab209994b8c989b8cfae0085ef |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| Nov 18, 2024 | https://github.com/python/cpython/pull/108648/files#r1846326421 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/108648/files |
|
| https://github.com/python/cpython/pull/108648/files#diff-4a637803c745f86a5ed3a3bb336b12697a2635ab209994b8c989b8cfae0085ef |
| Misc/NEWS.d/next/C_API/2023-08-29-17-27-01.gh-issue-108647.gyXLmO.rst | https://github.com/python/cpython/pull/108648/files#diff-bc79c3fd5a04ac60538c48b2010e9d38aa4ebd8b72b3c3c735675befa269450d |
|
View file
| https://github.com/python/cpython/blob/684d2b2dc0e4362f2709366ed1e1a60ae9ce7257/Misc/NEWS.d/next/C_API/2023-08-29-17-27-01.gh-issue-108647.gyXLmO.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/108648/{{ revealButtonHref }} |
| Modules/_testcapimodule.c | https://github.com/python/cpython/pull/108648/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f |
|
View file
| https://github.com/python/cpython/blob/684d2b2dc0e4362f2709366ed1e1a60ae9ce7257/Modules/_testcapimodule.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/108648/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/108648/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f |
|
| https://github.com/python/cpython/pull/108648/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f |
|
| https://github.com/python/cpython/pull/108648/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f |
|
| https://github.com/python/cpython/pull/108648/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f |
| Objects/structseq.c | https://github.com/python/cpython/pull/108648/files#diff-6088e5bc32426d02181ea56f5c4acbfc2fef3094c476b8081b22772fe205ccbd |
|
View file
| https://github.com/python/cpython/blob/684d2b2dc0e4362f2709366ed1e1a60ae9ce7257/Objects/structseq.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/108648/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/108648/files#diff-6088e5bc32426d02181ea56f5c4acbfc2fef3094c476b8081b22772fe205ccbd |
|
| https://github.com/python/cpython/pull/108648/files#diff-6088e5bc32426d02181ea56f5c4acbfc2fef3094c476b8081b22772fe205ccbd |
|
| https://github.com/python/cpython/pull/108648/files#diff-6088e5bc32426d02181ea56f5c4acbfc2fef3094c476b8081b22772fe205ccbd |
|
| https://github.com/python/cpython/pull/108648/files#diff-6088e5bc32426d02181ea56f5c4acbfc2fef3094c476b8081b22772fe205ccbd |
|
| https://github.com/python/cpython/pull/108648/files#diff-6088e5bc32426d02181ea56f5c4acbfc2fef3094c476b8081b22772fe205ccbd |
|
| https://github.com/python/cpython/pull/108648/files#diff-6088e5bc32426d02181ea56f5c4acbfc2fef3094c476b8081b22772fe205ccbd |
|
| https://github.com/python/cpython/pull/108648/files#diff-6088e5bc32426d02181ea56f5c4acbfc2fef3094c476b8081b22772fe205ccbd |
|
| 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 |