René's URL Explorer Experiment


Title: Element.itertext() works differently in C and Python implementations · Issue #149571 · python/cpython · GitHub

Open Graph Title: Element.itertext() works differently in C and Python implementations · Issue #149571 · python/cpython

X Title: Element.itertext() works differently in C and Python implementations · Issue #149571 · python/cpython

Description: In the Python implementation it returns empty iterator for Comment and ProcessingInstruction. In the C implementation it emits their content. >>> import xml.etree.ElementTree as ET >>> list(ET.Comment('comment').itertext()) ['comment'] c...

Open Graph Description: In the Python implementation it returns empty iterator for Comment and ProcessingInstruction. In the C implementation it emits their content. >>> import xml.etree.ElementTree as ET >>> list(ET.Comm...

X Description: In the Python implementation it returns empty iterator for Comment and ProcessingInstruction. In the C implementation it emits their content. >>> import xml.etree.ElementTree as ET >>...

Opengraph URL: https://github.com/python/cpython/issues/149571

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Element.itertext() works differently in C and Python implementations","articleBody":"In the Python implementation it returns empty iterator for Comment and ProcessingInstruction. In the C implementation it emits their content.\n\n```pycon\n>>> import xml.etree.ElementTree as ET\n>>> list(ET.Comment('comment').itertext())\n['comment']\n```\ncc @scoder\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-149714\n* gh-149929\n* gh-150509\n* gh-150510\n* gh-150511\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/serhiy-storchaka","@type":"Person","name":"serhiy-storchaka"},"datePublished":"2026-05-08T16:23:58Z","url":"https://github.com/python/cpython/issues/149571"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:456b6e6a-133f-6f0a-168a-a44f731bf743
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB212:2454CC:3A9E0F5:4A5C7DB:6B0200F4
html-safe-nonce02783d657c1ca6988227446e3c970eb893b17fe9226f013afc38efb7aaba29a2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjEyOjI0NTRDQzozQTlFMEY1OjRBNUM3REI6NkIwMjAwRjQiLCJ2aXNpdG9yX2lkIjoiOTA5ODU1MDU4NjY5NzE4NzU3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac67b8a7c3bf1400e88f3985b04274685896bfa2d6d9f27860a6d84a78350821fe
hovercard-subject-tagissue:4407814074
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/149571/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2e91d1104cd594de18033b5200bb6a4d5e0a735cbaa571fd040964a75014a264/python/cpython/issues/149571
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2e91d1104cd594de18033b5200bb6a4d5e0a735cbaa571fd040964a75014a264/python/cpython/issues/149571
og:image:altIn the Python implementation it returns empty iterator for Comment and ProcessingInstruction. In the C implementation it emits their content. >>> import xml.etree.ElementTree as ET >>> list(ET.Comm...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameserhiy-storchaka
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
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-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/149571#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F149571
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%2Fissues%2F149571
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/149571
Reloadhttps://github.com/python/cpython/issues/149571
Reloadhttps://github.com/python/cpython/issues/149571
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
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/149571
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/149571
Element.itertext() works differently in C and Python implementationshttps://github.com/python/cpython/issues/149571#top
https://github.com/serhiy-storchaka
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
3.15bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
3.16new features, bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.16%22
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
topic-XMLhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-XML%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
on May 8, 2026https://github.com/python/cpython/issues/149571#issue-4407814074
@scoderhttps://github.com/scoder
gh-149571: Make Element.itertext consistent for Comment and ProcessingInstruction #149714https://github.com/python/cpython/pull/149714
gh-149571: Fix the C implementation of Element.itertext() #149929https://github.com/python/cpython/pull/149929
[3.15] gh-149571: Fix the C implementation of Element.itertext() (GH-149929) #150509https://github.com/python/cpython/pull/150509
[3.14] gh-149571: Fix the C implementation of Element.itertext() (GH-149929) #150510https://github.com/python/cpython/pull/150510
[3.13] gh-149571: Fix the C implementation of Element.itertext() (GH-149929) #150511https://github.com/python/cpython/pull/150511
serhiy-storchakahttps://github.com/serhiy-storchaka
topic-XMLhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-XML%22
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
3.15bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
3.16new features, bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.16%22
on May 8, 2026https://github.com/python/cpython/issues/149571#event-25313684555
StanFromIrelandhttps://github.com/StanFromIreland
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
on May 8, 2026https://github.com/python/cpython/issues/149571#event-25316380713
hardiksingh5864https://github.com/hardiksingh5864
on May 12, 2026https://github.com/python/cpython/issues/149571#event-25422932584
Add news fragment for pythongh-149571https://github.com/hardiksingh5864/cpython/commit/6c97311aaf8eb4755c856e4a9d493d72fd942667
pythongh-149571https://github.com/python/cpython/issues/149571
6c97311https://github.com/hardiksingh5864/cpython/commit/6c97311aaf8eb4755c856e4a9d493d72fd942667
pythongh-149571: Make Element.itertext consistent for Comment and Pro…https://github.com/hardiksingh5864/cpython/commit/2dfd4332d71e5cf76d9a85a8211e1f8c530bf366
pythongh-149571https://github.com/python/cpython/issues/149571
2dfd433https://github.com/hardiksingh5864/cpython/commit/2dfd4332d71e5cf76d9a85a8211e1f8c530bf366
pythongh-149571: Remove the linter issuehttps://github.com/hardiksingh5864/cpython/commit/7c8cb36acd1edc1571ad301f9f45b69ad1eefa6f
pythongh-149571https://github.com/python/cpython/issues/149571
7c8cb36https://github.com/hardiksingh5864/cpython/commit/7c8cb36acd1edc1571ad301f9f45b69ad1eefa6f
pythongh-149571: Fixing the Ci failurehttps://github.com/hardiksingh5864/cpython/commit/5df8ef0599fe06fd426a437e6c8ff051dbc7c07e
pythongh-149571https://github.com/python/cpython/issues/149571
5df8ef0https://github.com/hardiksingh5864/cpython/commit/5df8ef0599fe06fd426a437e6c8ff051dbc7c07e
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
on May 15, 2026https://github.com/python/cpython/issues/149571#issuecomment-4458377104
https://github.com/scoder
scoderhttps://github.com/scoder
on May 16, 2026https://github.com/python/cpython/issues/149571#issuecomment-4466834179
serhiy-storchakahttps://github.com/serhiy-storchaka
on May 16, 2026https://github.com/python/cpython/issues/149571#event-25613715343
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
on May 17, 2026https://github.com/python/cpython/issues/149571#issuecomment-4469899774
#149929https://github.com/python/cpython/pull/149929
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
on May 17, 2026https://github.com/python/cpython/issues/149571#issuecomment-4469936389
https://www.w3.org/TR/xml11/#NT-Commenthttps://www.w3.org/TR/xml11/#NT-Comment
https://www.w3.org/TR/xml11/#NT-PIhttps://www.w3.org/TR/xml11/#NT-PI
serhiy-storchakahttps://github.com/serhiy-storchaka
on May 27, 2026https://github.com/python/cpython/issues/149571#event-26009968453
gh-149571: Fix the C implementation of Element.itertext() (GH-149929)https://github.com/python/cpython/commit/7de4fcd44585f572acbcee23f5c7018b2b3f0983
gh-149571https://github.com/python/cpython/issues/149571
GH-149929https://github.com/python/cpython/pull/149929
7de4fcdhttps://github.com/python/cpython/commit/7de4fcd44585f572acbcee23f5c7018b2b3f0983
[3.13] gh-149571: Fix the C implementation of Element.itertext() (GH-…https://github.com/python/cpython/commit/98a9ccbe39c26608a625b4b43f1ed90dcd1fc19b
gh-149571https://github.com/python/cpython/issues/149571
GH-…https://github.com/python/cpython/pull/149929
98a9ccbhttps://github.com/python/cpython/commit/98a9ccbe39c26608a625b4b43f1ed90dcd1fc19b
[3.14] gh-149571: Fix the C implementation of Element.itertext() (GH-…https://github.com/python/cpython/commit/27a18eb4658704370fef1b2e2d75dcc1b0c5fb4c
gh-149571https://github.com/python/cpython/issues/149571
GH-…https://github.com/python/cpython/pull/149929
27a18ebhttps://github.com/python/cpython/commit/27a18eb4658704370fef1b2e2d75dcc1b0c5fb4c
[3.15] gh-149571: Fix the C implementation of Element.itertext() (GH-…https://github.com/python/cpython/commit/d2b10e75c7093fd9637dc8428d94cb8c723f808d
gh-149571https://github.com/python/cpython/issues/149571
GH-…https://github.com/python/cpython/pull/149929
d2b10e7https://github.com/python/cpython/commit/d2b10e75c7093fd9637dc8428d94cb8c723f808d
serhiy-storchakahttps://github.com/serhiy-storchaka
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 27, 2026https://github.com/python/cpython/issues/149571#event-26013108354
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/149571
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/149571
serhiy-storchakahttps://github.com/serhiy-storchaka
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
3.15bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
3.16new features, bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.16%22
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
topic-XMLhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-XML%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
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.