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: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: Issue: Increase PyStructSequence compatibility with collections.namedtuple  #108647 Issue: Enhance Object/structseq.c to match namedtuple and tuple api #46145

X Description: Issue: Increase PyStructSequence compatibility with collections.namedtuple  #108647 Issue: Enhance Object/structseq.c to match namedtuple and tuple api #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/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:325d4cc9-1d1d-2367-3072-ed154be9ab4f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAAA2:8AE25:1F614D0:2973A76:6B023B47
html-safe-nonce7c9d7a23fa6d4fec8eaa5b3210efc0b5fb730a97823f472f9ab6bd06b2f62582
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQUEyOjhBRTI1OjFGNjE0RDA6Mjk3M0E3Njo2QjAyM0I0NyIsInZpc2l0b3JfaWQiOiI1NDc0NjczMDQzMDkzNzMyMTY3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5fe41055afb12ef8277bf767952a545db72a6557566e58c2403654a652619f90
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/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/108648/commits
twitter:imagehttps://opengraph.githubassets.com/0ee0992621facd539d6554a32006883e80f469e9f3973de556ef7493dc296be9/python/cpython/pull/108648
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0ee0992621facd539d6554a32006883e80f469e9f3973de556ef7493dc296be9/python/cpython/pull/108648
og:image:altIssue: Increase PyStructSequence compatibility with collections.namedtuple  #108647 Issue: Enhance Object/structseq.c to match namedtuple and tuple api #46145
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameFFY00
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-cache
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
disable-turbofalse
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
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/108648/commits#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F108648%2Fcommits
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%2Fcommits
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%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/108648/commits
Reloadhttps://github.com/python/cpython/pull/108648/commits
Reloadhttps://github.com/python/cpython/pull/108648/commits
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
https://github.com/python/cpython
FFY00https://github.com/FFY00
python:mainhttps://github.com/python/cpython/tree/main
FFY00:gh-108647https://github.com/FFY00/cpython/tree/gh-108647
Conversationhttps://github.com/python/cpython/pull/108648
Commits21 (21)https://github.com/python/cpython/pull/108648/commits
Checkshttps://github.com/python/cpython/pull/108648/checks
Files changedhttps://github.com/python/cpython/pull/108648/files
GH-46145: make PyStructSequence compatible with namedtuplehttps://github.com/python/cpython/pull/108648/commits#top
FFY00https://github.com/FFY00
python:mainhttps://github.com/python/cpython/tree/main
FFY00:gh-108647https://github.com/FFY00/cpython/tree/gh-108647
add _fields to PyStructSequencehttps://github.com/python/cpython/pull/108648/commits/668b9e5f3dbc1ab5fe8cac0252b05c58025cc44f
https://github.com/FFY00
FFY00https://github.com/python/cpython/commits?author=FFY00
668b9e5https://github.com/python/cpython/pull/108648/commits/668b9e5f3dbc1ab5fe8cac0252b05c58025cc44f
https://github.com/python/cpython/tree/668b9e5f3dbc1ab5fe8cac0252b05c58025cc44f
add _asdict to PyStructSequencehttps://github.com/python/cpython/pull/108648/commits/6ed9a8600d65b553f75f0d2a150634870c255164
https://github.com/FFY00
FFY00https://github.com/python/cpython/commits?author=FFY00
6ed9a86https://github.com/python/cpython/pull/108648/commits/6ed9a8600d65b553f75f0d2a150634870c255164
https://github.com/python/cpython/tree/6ed9a8600d65b553f75f0d2a150634870c255164
add newshttps://github.com/python/cpython/pull/108648/commits/995a2d9a60d6b9f772d24b5526e3c8b9425d357c
https://github.com/FFY00
FFY00https://github.com/python/cpython/commits?author=FFY00
995a2d9https://github.com/python/cpython/pull/108648/commits/995a2d9a60d6b9f772d24b5526e3c8b9425d357c
https://github.com/python/cpython/tree/995a2d9a60d6b9f772d24b5526e3c8b9425d357c
add _field_defaults to PyStructSequencehttps://github.com/python/cpython/pull/108648/commits/c7cf78b20bde75f6cc3dd25aaa3deec0241fc17e
https://github.com/FFY00
FFY00https://github.com/python/cpython/commits?author=FFY00
c7cf78bhttps://github.com/python/cpython/pull/108648/commits/c7cf78b20bde75f6cc3dd25aaa3deec0241fc17e
https://github.com/python/cpython/tree/c7cf78b20bde75f6cc3dd25aaa3deec0241fc17e
(from review) use Py_DECREF instead of Py_XDECREFhttps://github.com/python/cpython/pull/108648/commits/76c0581b6464dd493a36a08babb326e6e87b9716
https://github.com/FFY00
FFY00https://github.com/python/cpython/commits?author=FFY00
76c0581https://github.com/python/cpython/pull/108648/commits/76c0581b6464dd493a36a08babb326e6e87b9716
https://github.com/python/cpython/tree/76c0581b6464dd493a36a08babb326e6e87b9716
add testshttps://github.com/python/cpython/pull/108648/commits/5c3e4a500b01f0df76551f6a57540ad9dd8f3a9a
https://github.com/FFY00
FFY00https://github.com/python/cpython/commits?author=FFY00
5c3e4a5https://github.com/python/cpython/pull/108648/commits/5c3e4a500b01f0df76551f6a57540ad9dd8f3a9a
https://github.com/python/cpython/tree/5c3e4a500b01f0df76551f6a57540ad9dd8f3a9a
use Py_DECREF instead of Py_XDECREF for defaults in initialize_structseq_dicthttps://github.com/python/cpython/pull/108648/commits/48b5c2a3d4937dc8865cd30f8553ac8a73eebce8
https://github.com/FFY00
FFY00https://github.com/python/cpython/commits?author=FFY00
48b5c2ahttps://github.com/python/cpython/pull/108648/commits/48b5c2a3d4937dc8865cd30f8553ac8a73eebce8
https://github.com/python/cpython/tree/48b5c2a3d4937dc8865cd30f8553ac8a73eebce8
don't support namedtuple helpers when unnamed fields are presenthttps://github.com/python/cpython/pull/108648/commits/173546ce371c2b579bf4861feeb2a3022c191188
https://github.com/FFY00
FFY00https://github.com/python/cpython/commits?author=FFY00
173546chttps://github.com/python/cpython/pull/108648/commits/173546ce371c2b579bf4861feeb2a3022c191188
https://github.com/python/cpython/tree/173546ce371c2b579bf4861feeb2a3022c191188
Merge branch 'main' into gh-108647https://github.com/python/cpython/pull/108648/commits/1a4d1f30ce8e13fe6673533edf35a7110b2c652e
https://github.com/FFY00
FFY00https://github.com/python/cpython/commits?author=FFY00
1a4d1f3https://github.com/python/cpython/pull/108648/commits/1a4d1f30ce8e13fe6673533edf35a7110b2c652e
https://github.com/python/cpython/tree/1a4d1f30ce8e13fe6673533edf35a7110b2c652e
Fix lintinghttps://github.com/python/cpython/pull/108648/commits/c99456fef42a1c25c9498200e7b2a2b8e386d79b
https://github.com/FFY00
FFY00https://github.com/python/cpython/commits?author=FFY00
c99456fhttps://github.com/python/cpython/pull/108648/commits/c99456fef42a1c25c9498200e7b2a2b8e386d79b
https://github.com/python/cpython/tree/c99456fef42a1c25c9498200e7b2a2b8e386d79b
Fix inconsistent stylehttps://github.com/python/cpython/pull/108648/commits/8881c96dcde81fa1d205ff223e95cc6f46f19204
https://github.com/FFY00
FFY00https://github.com/python/cpython/commits?author=FFY00
8881c96https://github.com/python/cpython/pull/108648/commits/8881c96dcde81fa1d205ff223e95cc6f46f19204
https://github.com/python/cpython/tree/8881c96dcde81fa1d205ff223e95cc6f46f19204
Fix comment typohttps://github.com/python/cpython/pull/108648/commits/0482b08f83c50a9e835a376e4402cabdf5d9e49f
https://github.com/FFY00
FFY00https://github.com/python/cpython/commits?author=FFY00
0482b08https://github.com/python/cpython/pull/108648/commits/0482b08f83c50a9e835a376e4402cabdf5d9e49f
https://github.com/python/cpython/tree/0482b08f83c50a9e835a376e4402cabdf5d9e49f
Join code that the comment is referring tohttps://github.com/python/cpython/pull/108648/commits/df1bd45cfeefe1dad9830324eb6a4d442cf215e0
https://github.com/FFY00
FFY00https://github.com/python/cpython/commits?author=FFY00
df1bd45https://github.com/python/cpython/pull/108648/commits/df1bd45cfeefe1dad9830324eb6a4d442cf215e0
https://github.com/python/cpython/tree/df1bd45cfeefe1dad9830324eb6a4d442cf215e0
Simplify error descriptionhttps://github.com/python/cpython/pull/108648/commits/7ec1eb6ebc1ff7fe5819a900f1298e31bd31be23
https://github.com/FFY00
FFY00https://github.com/python/cpython/commits?author=FFY00
7ec1eb6https://github.com/python/cpython/pull/108648/commits/7ec1eb6ebc1ff7fe5819a900f1298e31bd31be23
https://github.com/python/cpython/tree/7ec1eb6ebc1ff7fe5819a900f1298e31bd31be23
Put _asdict after dunder methods in structseq_methodshttps://github.com/python/cpython/pull/108648/commits/d6582334a29284b9b05eacd9aca775d85144d0cd
https://github.com/FFY00
FFY00https://github.com/python/cpython/commits?author=FFY00
d658233https://github.com/python/cpython/pull/108648/commits/d6582334a29284b9b05eacd9aca775d85144d0cd
https://github.com/python/cpython/tree/d6582334a29284b9b05eacd9aca775d85144d0cd
Fix comment typohttps://github.com/python/cpython/pull/108648/commits/81a07f29d9b89ae0a8001d06ff62a90007a3ff0a
https://github.com/FFY00
FFY00https://github.com/python/cpython/commits?author=FFY00
81a07f2https://github.com/python/cpython/pull/108648/commits/81a07f29d9b89ae0a8001d06ff62a90007a3ff0a
https://github.com/python/cpython/tree/81a07f29d9b89ae0a8001d06ff62a90007a3ff0a
Fix news doc referenceshttps://github.com/python/cpython/pull/108648/commits/de300a670663fa7f46eb2e79a094eb259e0f500a
https://github.com/FFY00
FFY00https://github.com/python/cpython/commits?author=FFY00
de300a6https://github.com/python/cpython/pull/108648/commits/de300a670663fa7f46eb2e79a094eb259e0f500a
https://github.com/python/cpython/tree/de300a670663fa7f46eb2e79a094eb259e0f500a
Sync structseq_asdict error messagehttps://github.com/python/cpython/pull/108648/commits/c11f5441b8fd5e7c8b6c225fe64ef453c2be7e08
https://github.com/FFY00
FFY00https://github.com/python/cpython/commits?author=FFY00
c11f544https://github.com/python/cpython/pull/108648/commits/c11f5441b8fd5e7c8b6c225fe64ef453c2be7e08
https://github.com/python/cpython/tree/c11f5441b8fd5e7c8b6c225fe64ef453c2be7e08
Add extra checks to _asdicthttps://github.com/python/cpython/pull/108648/commits/00ae6a8a514b36de6036976894716bf6c7d05382
https://github.com/FFY00
FFY00https://github.com/python/cpython/commits?author=FFY00
00ae6a8https://github.com/python/cpython/pull/108648/commits/00ae6a8a514b36de6036976894716bf6c7d05382
https://github.com/python/cpython/tree/00ae6a8a514b36de6036976894716bf6c7d05382
Add _replace as an alias to __replace__https://github.com/python/cpython/pull/108648/commits/7fc188557916ecb42cd2dc26e5fc73469b51374d
https://github.com/FFY00
FFY00https://github.com/python/cpython/commits?author=FFY00
7fc1885https://github.com/python/cpython/pull/108648/commits/7fc188557916ecb42cd2dc26e5fc73469b51374d
https://github.com/python/cpython/tree/7fc188557916ecb42cd2dc26e5fc73469b51374d
Add structseq_makehttps://github.com/python/cpython/pull/108648/commits/684d2b2dc0e4362f2709366ed1e1a60ae9ce7257
https://github.com/FFY00
FFY00https://github.com/python/cpython/commits?author=FFY00
684d2b2https://github.com/python/cpython/pull/108648/commits/684d2b2dc0e4362f2709366ed1e1a60ae9ce7257
https://github.com/python/cpython/tree/684d2b2dc0e4362f2709366ed1e1a60ae9ce7257
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.