René's URL Explorer Experiment


Title: gh-123884 Tee of tee was not producing n independent iterators by rhettinger · Pull Request #124490 · python/cpython · GitHub

Open Graph Title: gh-123884 Tee of tee was not producing n independent iterators by rhettinger · Pull Request #124490 · python/cpython

X Title: gh-123884 Tee of tee was not producing n independent iterators by rhettinger · Pull Request #124490 · python/cpython

Description: Eliminates the code path that reused a tee object input as part of the output. Updated the rough equivalent recipe to have better fidelity to the actual C code. Removed a note about using the tee i...

Open Graph Description: Eliminates the code path that reused a tee object input as part of the output. Updated the rough equivalent recipe to have better fidelity to the actual C code. Removed a note about using the tee i...

X Description: Eliminates the code path that reused a tee object input as part of the output. Updated the rough equivalent recipe to have better fidelity to the actual C code. Removed a note about using the tee i...

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

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:4f5e0956-dec2-de71-71b2-cd568d19e2fa
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC0FC:2C2C4D:1FF536F:2BB4A7A:696AC065
html-safe-nonce5de072ec834dab157cead3072a55f958b60a3e69732dfb7bbd682e7528a0bd43
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMEZDOjJDMkM0RDoxRkY1MzZGOjJCQjRBN0E6Njk2QUMwNjUiLCJ2aXNpdG9yX2lkIjoiMzA0OTMxMDg2OTM1MTIxOTMwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd35b8c9d85a1996a34f24e25210753e0555815d8c2d39bcef1dd4fd450ba9774
hovercard-subject-tagpull_request:2090517451
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/124490/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/5e9eb1a29f20b4669c0be70b93779098308e0a6deef237ec073651099c459854/python/cpython/pull/124490
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5e9eb1a29f20b4669c0be70b93779098308e0a6deef237ec073651099c459854/python/cpython/pull/124490
og:image:altEliminates the code path that reused a tee object input as part of the output. Updated the rough equivalent recipe to have better fidelity to the actual C code. Removed a note about using the tee i...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerhettinger
hostnamegithub.com
expected-hostnamegithub.com
None46ce962e0e18113ea447391b6ace8b02d4d2861e57b4fbab3658698f73d8855b
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
release30300f30bb3949de255e84a146706a3bdb5c19c9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/124490#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F124490
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F124490
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
Reloadhttps://github.com/python/cpython/pull/124490
Reloadhttps://github.com/python/cpython/pull/124490
Reloadhttps://github.com/python/cpython/pull/124490
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/124490
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/124490
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
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
Jump to bottomhttps://github.com/python/cpython/pull/124490#issue-comment-box
rhettingerhttps://github.com/rhettinger
python:mainhttps://github.com/python/cpython/tree/main
rhettinger:tee1https://github.com/rhettinger/cpython/tree/tee1
gh-123884 Tee of tee was not producing n independent iterators https://github.com/python/cpython/pull/124490#top
rhettingerhttps://github.com/rhettinger
python:mainhttps://github.com/python/cpython/tree/main
rhettinger:tee1https://github.com/rhettinger/cpython/tree/tee1
Conversation 7 https://github.com/python/cpython/pull/124490
Commits 9 https://github.com/python/cpython/pull/124490/commits
Checks 2 https://github.com/python/cpython/pull/124490/checks
Files changed https://github.com/python/cpython/pull/124490/files
Please reload this pagehttps://github.com/python/cpython/pull/124490
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/rhettinger
rhettingerhttps://github.com/rhettinger
Sep 25, 2024https://github.com/python/cpython/pull/124490#issue-2547004378
Please reload this pagehttps://github.com/python/cpython/pull/124490
Incorrect optimization in itertools.tee() #123884https://github.com/python/cpython/issues/123884
https://cpython-previews--124490.org.readthedocs.build/https://cpython-previews--124490.org.readthedocs.build/
Please reload this pagehttps://github.com/python/cpython/pull/124490
rhettingerhttps://github.com/rhettinger
September 24, 2024 14:12https://github.com/python/cpython/pull/124490#commits-pushed-6ce5cb0
https://github.com/rhettinger
Working fixhttps://github.com/python/cpython/pull/124490/commits/6ce5cb046c7d4dd3e4c2a3a1d812c546b540b47f
6ce5cb0https://github.com/python/cpython/pull/124490/commits/6ce5cb046c7d4dd3e4c2a3a1d812c546b540b47f
https://github.com/rhettinger
Clean-up unused pathhttps://github.com/python/cpython/pull/124490/commits/2a7a4d32ef4a93e9a7021b81600e25c5c5c33246
2a7a4d3https://github.com/python/cpython/pull/124490/commits/2a7a4d32ef4a93e9a7021b81600e25c5c5c33246
https://github.com/rhettinger
Update tee() rough equivalent recipe and related testshttps://github.com/python/cpython/pull/124490/commits/e397bfd5318614715c52173a60022db232589e9e
e397bfdhttps://github.com/python/cpython/pull/124490/commits/e397bfd5318614715c52173a60022db232589e9e
https://github.com/rhettinger
Add blurbhttps://github.com/python/cpython/pull/124490/commits/8e2315c6dfff152cef6af38857bc98540a1541c6
8e2315chttps://github.com/python/cpython/pull/124490/commits/8e2315c6dfff152cef6af38857bc98540a1541c6
https://github.com/rhettinger
rhettingerhttps://github.com/rhettinger
type-bug https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-bug
needs backport to 3.12 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.12%22
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
Sep 25, 2024https://github.com/python/cpython/pull/124490#event-14392920857
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Sep 25, 2024https://github.com/python/cpython/pull/124490#event-14392921415
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Sep 25, 2024 https://github.com/python/cpython/pull/124490#ref-issue-2514961180
Incorrect optimization in itertools.tee() #123884 https://github.com/python/cpython/issues/123884
rhettingerhttps://github.com/rhettinger
September 25, 2024 08:35https://github.com/python/cpython/pull/124490#commits-pushed-4e4fad4
https://github.com/rhettinger
Call tee_copy() directlyhttps://github.com/python/cpython/pull/124490/commits/4e4fad41367c2a76c88c449fe322ff4aec409e93
4e4fad4https://github.com/python/cpython/pull/124490/commits/4e4fad41367c2a76c88c449fe322ff4aec409e93
https://github.com/rhettinger
Merge branch 'main' into tee1https://github.com/python/cpython/pull/124490/commits/1a56697bd9e1750f81c85bbd72f5ba3b2e1267f6
1a56697https://github.com/python/cpython/pull/124490/commits/1a56697bd9e1750f81c85bbd72f5ba3b2e1267f6
https://github.com/rhettinger
Beautify the pure python versionhttps://github.com/python/cpython/pull/124490/commits/ee064e72d883cf555b494e2bd37e68c3d9ab8c80
ee064e7https://github.com/python/cpython/pull/124490/commits/ee064e72d883cf555b494e2bd37e68c3d9ab8c80
https://github.com/rhettinger
Merge branch 'main' into tee1https://github.com/python/cpython/pull/124490/commits/f2f0a6e249f96143b8e9c59b67cbec77cee891c7
f2f0a6ehttps://github.com/python/cpython/pull/124490/commits/f2f0a6e249f96143b8e9c59b67cbec77cee891c7
https://github.com/rhettinger
Remove unused __copy__ constanthttps://github.com/python/cpython/pull/124490/commits/6153e70d53127fd04b8f29a8b7fd39e659857dfd
6153e70https://github.com/python/cpython/pull/124490/commits/6153e70d53127fd04b8f29a8b7fd39e659857dfd
https://github.com/rhettinger
rhettingerhttps://github.com/rhettinger
ericvsmithhttps://github.com/ericvsmith
September 25, 2024 19:08https://github.com/python/cpython/pull/124490#event-14404444232
https://github.com/ericvsmith
ericvsmithhttps://github.com/ericvsmith
Sep 25, 2024 https://github.com/python/cpython/pull/124490#pullrequestreview-2329429501
View reviewed changes https://github.com/python/cpython/pull/124490/files/6153e70d53127fd04b8f29a8b7fd39e659857dfd
ericvsmithhttps://github.com/ericvsmith
https://github.com/python/cpython/pull/124490#pullrequestreview-2329429501
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/124490
Doc/library/itertools.rsthttps://github.com/python/cpython/pull/124490/files/6153e70d53127fd04b8f29a8b7fd39e659857dfd#diff-dc4aad2e6d83f79bb1296aa5b1e1567f11ef347d522c2eb3a82645f772cd6e5e
Please reload this pagehttps://github.com/python/cpython/pull/124490
Lib/test/test_itertools.pyhttps://github.com/python/cpython/pull/124490/files/6153e70d53127fd04b8f29a8b7fd39e659857dfd#diff-9abbaeca99112e9e04b554726bff97b76030eb982f39e591be77be8ef14149e5
Please reload this pagehttps://github.com/python/cpython/pull/124490
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Sep 25, 2024https://github.com/python/cpython/pull/124490#event-14405596031
https://github.com/rhettinger
rhettingerhttps://github.com/rhettinger
909c6f7https://github.com/python/cpython/commit/909c6f718913e713c990d69e6d8a74c05f81e2c2
Sep 25, 2024https://github.com/python/cpython/pull/124490#event-14405779107
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Sep 25, 2024https://github.com/python/cpython/pull/124490#issuecomment-2375210007
@rhettingerhttps://github.com/rhettinger
Please reload this pagehttps://github.com/python/cpython/pull/124490
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Sep 25, 2024https://github.com/python/cpython/pull/124490#event-14405779590
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Sep 25, 2024https://github.com/python/cpython/pull/124490#issuecomment-2375210079
@rhettingerhttps://github.com/rhettinger
cherry_pickerhttps://pypi.org/project/cherry-picker/
Please reload this pagehttps://github.com/python/cpython/pull/124490
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
rhettingerhttps://github.com/rhettinger
Sep 25, 2024https://github.com/python/cpython/pull/124490#event-14405780129
https://github.com/rhettinger
rhettingerhttps://github.com/rhettinger
September 25, 2024 20:38https://github.com/python/cpython/pull/124490#event-14405780144
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Sep 25, 2024https://github.com/python/cpython/pull/124490#issuecomment-2375210542
@rhettingerhttps://github.com/rhettinger
cherry_pickerhttps://pypi.org/project/cherry-picker/
Please reload this pagehttps://github.com/python/cpython/pull/124490
emilyemorehousehttps://github.com/emilyemorehouse
Sep 26, 2024 https://github.com/python/cpython/pull/124490#ref-commit-4cdb3ae
https://github.com/emilyemorehouse
Merge branch 'main' into fix-help-double-prompthttps://github.com/lysnikolaou/cpython/commit/4cdb3ae328217c048025cccc76755180a029c674
4cdb3aehttps://github.com/lysnikolaou/cpython/commit/4cdb3ae328217c048025cccc76755180a029c674
python#124566https://github.com/python/cpython/pull/124566
pythongh-124412https://github.com/python/cpython/issues/124412
python#124551https://github.com/python/cpython/pull/124551
pythongh-119180https://github.com/python/cpython/issues/119180
python#124561https://github.com/python/cpython/pull/124561
python#123946https://github.com/python/cpython/pull/123946
python#124560https://github.com/python/cpython/pull/124560
pythongh-123242https://github.com/python/cpython/issues/123242
python#124557https://github.com/python/cpython/pull/124557
pythongh-119180https://github.com/python/cpython/issues/119180
python#124479https://github.com/python/cpython/pull/124479
pythonGH-58058https://github.com/python/cpython/issues/58058
pythongh-124227https://github.com/python/cpython/pull/124227
pythongh-41431https://github.com/python/cpython/issues/41431
python#120752https://github.com/python/cpython/pull/120752
pythongh-102450https://github.com/python/cpython/issues/102450
python#105856https://github.com/python/cpython/pull/105856
pythongh-124370https://github.com/python/cpython/issues/124370
python#124371https://github.com/python/cpython/pull/124371
pythongh-121277https://github.com/python/cpython/issues/121277
pythonGH-121278https://github.com/python/cpython/pull/121278
pythongh-119400https://github.com/python/cpython/issues/119400
python#119400https://github.com/python/cpython/issues/119400
pythonGH-119401https://github.com/python/cpython/pull/119401
pythongh-119180https://github.com/python/cpython/issues/119180
python#124337https://github.com/python/cpython/pull/124337
pythongh-124448https://github.com/python/cpython/issues/124448
pythonGH-124449https://github.com/python/cpython/pull/124449
pythongh-123884https://github.com/python/cpython/issues/123884
pythongh-124490https://github.com/python/cpython/pull/124490
pythongh-124378https://github.com/python/cpython/issues/124378
pythonGH-124542https://github.com/python/cpython/pull/124542
pythongh-124513https://github.com/python/cpython/issues/124513
python#124515https://github.com/python/cpython/pull/124515
pythongh-101100https://github.com/python/cpython/issues/101100
python#124480https://github.com/python/cpython/pull/124480
python#124489https://github.com/python/cpython/pull/124489
rhettingerhttps://github.com/rhettinger
Oct 8, 2024 https://github.com/python/cpython/pull/124490#ref-commit-3509123
https://github.com/rhettinger
pythongh-123884https://github.com/python/cpython/issues/123884
Tee of tee was not producing n independent iterators (https://github.com/rhettinger/cpython/commit/3509123d86a8b2e0e10268185be35c514b3b751f
p…https://github.com/python/cpython/pull/124490
3509123https://github.com/rhettinger/cpython/commit/3509123d86a8b2e0e10268185be35c514b3b751f
…ythongh-124490https://github.com/python/cpython/pull/124490
https://github.com/picnixz
picnixzhttps://github.com/picnixz
needs backport to 3.12 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.12%22
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
Apr 5, 2025https://github.com/python/cpython/pull/124490#event-17139733534
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F124490
https://github.com/ericvsmith
ericvsmith https://github.com/ericvsmith
https://github.com/python/cpython/pull/124490/files/6153e70d53127fd04b8f29a8b7fd39e659857dfd
https://github.com/rhettinger
rhettinger https://github.com/rhettinger
type-bug https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-bug
Please reload this pagehttps://github.com/python/cpython/pull/124490
https://github.com/rhettinger
https://github.com/ericvsmith
https://github.com/picnixz
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.