Title: the itertools.chain.from_iterable docs should gain a short note pointing readers PEP 798 alternative · Issue #152397 · python/cpython · GitHub
Open Graph Title: the itertools.chain.from_iterable docs should gain a short note pointing readers PEP 798 alternative · Issue #152397 · python/cpython
X Title: the itertools.chain.from_iterable docs should gain a short note pointing readers PEP 798 alternative · Issue #152397 · python/cpython
Description: Documentation Per the accepted Ideas discussion (https://discuss.python.org/t/the-itertools-chain-from-iterable-and-itertools-chain-should-include-a-note-referring-to-pep-798-alternatives/107921), the itertools.chain.from_iterable docs s...
Open Graph Description: Documentation Per the accepted Ideas discussion (https://discuss.python.org/t/the-itertools-chain-from-iterable-and-itertools-chain-should-include-a-note-referring-to-pep-798-alternatives/107921), ...
X Description: Documentation Per the accepted Ideas discussion (https://discuss.python.org/t/the-itertools-chain-from-iterable-and-itertools-chain-should-include-a-note-referring-to-pep-798-alternatives/107921), ...
Opengraph URL: https://github.com/python/cpython/issues/152397
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"the itertools.chain.from_iterable docs should gain a short note pointing readers PEP 798 alternative","articleBody":"### Documentation\n\nPer the accepted Ideas discussion (https://discuss.python.org/t/the-itertools-chain-from-iterable-and-itertools-chain-should-include-a-note-referring-to-pep-798-alternatives/107921), the itertools.chain.from_iterable docs should gain a short note pointing readers to the inline unpacking-in-comprehension form added by PEP 798 (e.g. (*it for it in iterables)), as a more readable alternative for simple flattening on 3.15+.\nDocs-only; no change to the \"roughly equivalent\" code, and no deprecation — chain / from_iterable remain useful as first-class callables and for earlier versions.\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-152455\n* gh-152454\n* gh-152460\n* gh-152497\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/graingert","@type":"Person","name":"graingert"},"datePublished":"2026-06-27T11:50:31Z","url":"https://github.com/python/cpython/issues/152397"}
| 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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:45fe25ff-fb9f-9e42-9ad2-dc61d0bcbfe1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A85A:1F87:D2ACF5:10728D9:6B023A9E |
| html-safe-nonce | c1c2160845941152b2031c91291103804ca94740e18284f928c9c8c1438e6284 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODVBOjFGODc6RDJBQ0Y1OjEwNzI4RDk6NkIwMjNBOUUiLCJ2aXNpdG9yX2lkIjoiNjA2MzE5MTE0NzI4MTUyOTUwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7925343c3f429f0bb67adcdd837c4db8c501380c85e0e6669066fe49b6f46d08 |
| hovercard-subject-tag | issue:4758182942 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/152397/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0e1af30f59c4632aafb068b583feb2bb856da3cde3b96eebd27433511df4198b/python/cpython/issues/152397 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0e1af30f59c4632aafb068b583feb2bb856da3cde3b96eebd27433511df4198b/python/cpython/issues/152397 |
| og:image:alt | Documentation Per the accepted Ideas discussion (https://discuss.python.org/t/the-itertools-chain-from-iterable-and-itertools-chain-should-include-a-note-referring-to-pep-798-alternatives/107921), ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | graingert |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| 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 |
| react-app-name | issues |
Links:
Viewport: width=device-width