René's URL Explorer Experiment


Title: GH-46145: make `PyStructSequence` compatible with `namedtuple` by FFY00 · Pull Request #108648 · python/cpython · GitHub

Open Graph Title: GH-46145: make `PyStructSequence` compatible with `namedtuple` by FFY00 · Pull Request #108648 · python/cpython

X Title: GH-46145: make `PyStructSequence` compatible with `namedtuple` by FFY00 · Pull Request #108648 · python/cpython

Description: Issue: gh-108647 Issue: gh-46145

Open Graph Description: Issue: gh-108647 Issue: gh-46145

X Description: Issue: gh-108647 Issue: gh-46145

Opengraph URL: https://github.com/python/cpython/pull/108648

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,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-controllerpull_requests
route-actionfiles
fetch-noncev2:10b6f7d8-e42f-0f52-ecb9-68529abedec4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA3AA:2E9D3B:BA7B1F:EA6229:6B0236AC
html-safe-nonce5e575748e984ec35dfed7252b0d4c071ddee9e6233b366e8138bd8b53da5ba02
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBM0FBOjJFOUQzQjpCQTdCMUY6RUE2MjI5OjZCMDIzNkFDIiwidmlzaXRvcl9pZCI6IjEyMTczNjIxMTMzNzk1Nzk1NjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb8f47cb8599343dfce88b7b826615050fecd9c080765b42ab29ff3347f6ab394
hovercard-subject-tagpull_request:1494078859
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/108648/files
twitter:imagehttps://avatars.githubusercontent.com/u/11718923?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/11718923?s=400&v=4
og:image:altIssue: gh-108647 Issue: gh-46145
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/108648/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F108648%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F108648%2Ffiles
Sign uphttps://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
Reloadhttps://github.com/python/cpython/pull/108648/files
Reloadhttps://github.com/python/cpython/pull/108648/files
Reloadhttps://github.com/python/cpython/pull/108648/files
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
FFY00https://github.com/FFY00
python:mainhttps://github.com/python/cpython/tree/main
FFY00:gh-108647https://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 pagehttps://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 pagehttps://github.com/python/cpython/pull/108648/files
Please reload this pagehttps://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.rsthttps://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.pyhttps://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-storchakahttps://github.com/serhiy-storchaka
Nov 18, 2024https://github.com/python/cpython/pull/108648/files#r1846326421
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://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.rsthttps://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.chttps://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.chttps://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
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.