Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
python
/
cpython
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
36.3k
Star
77.3k
Code
Issues
5k+
Pull requests
2.7k
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
cpython
Doc
library
itertools.rst
on
3.7
User selector
All users
Datepicker
All time
Commit history
Commits on Sep 9, 2019
bpo-34410: Fix a crash in the tee iterator when re-enter it. (GH-15625)
Show description for 5190b71
miss-islington
and
serhiy-storchaka
authored
5190b71
View commit details
Copy full SHA for 5190b71
View code at this point
Browse repository at this point
Commits on Apr 8, 2018
Add a prepend() recipe to teach a chain() idiom (GH-6415) (GH-6421)
Show description for 8a72266
miss-islington
and
rhettinger
committed
8a72266
View commit details
Copy full SHA for 8a72266
View code at this point
Browse repository at this point
Commits on Mar 27, 2018
bpo-27212: Modify islice recipe to consume initial values preceding start (GH-6195) (#GH-6266)
Show description for f328caf
2 people
authored and
rhettinger
committed
f328caf
View commit details
Copy full SHA for f328caf
View code at this point
Browse repository at this point
Commits on Jan 13, 2018
Add itertools recipe for directly finding the n-th combination (#5161)
rhettinger
authored
d37258d
View commit details
Copy full SHA for d37258d
View code at this point
Browse repository at this point
Commits on Dec 15, 2017
Minor wording tweak for itertools documentation (#4893)
rhettinger
authored
6693d7a
View commit details
Copy full SHA for 6693d7a
View code at this point
Browse repository at this point
Commits on Nov 21, 2017
Add comment and improve variable name in roundrobin() (#4486)
rhettinger
authored
337cbba
View commit details
Copy full SHA for 337cbba
View code at this point
Browse repository at this point
Commits on Sep 25, 2017
bpo-27385: Clarify docstring for groupby() (#3738)
rhettinger
authored
49392c6
View commit details
Copy full SHA for 49392c6
View code at this point
Browse repository at this point
Commits on Sep 24, 2017
bpo-30346: An iterator produced by the itertools.groupby() iterator (#1569)
Show description for c247caf
serhiy-storchaka
authored
c247caf
View commit details
Copy full SHA for c247caf
View code at this point
Browse repository at this point
Commits on Sep 7, 2017
bpo-31270: Modification of Pr 3200 (#3427)
Show description for 3147b04
rhettinger
authored
3147b04
View commit details
Copy full SHA for 3147b04
View code at this point
Browse repository at this point
Commits on Jun 11, 2016
Merge Issue #22558.
terryjreedy
committed
4da945f
View commit details
Copy full SHA for 4da945f
View code at this point
Browse repository at this point
Issue #22558: Add remaining doc links to source code for Python-coded modules.
Show description for fa089b9
terryjreedy
committed
fa089b9
View commit details
Copy full SHA for fa089b9
View code at this point
Browse repository at this point
Commits on May 28, 2016
Issue 25926: Clarify that the pure python equivalents are only approximate.
rhettinger
committed
672866d
View commit details
Copy full SHA for 672866d
View code at this point
Browse repository at this point
Issue 25926: Clarify that the pure python equivalents are only approximate.
rhettinger
committed
819581b
View commit details
Copy full SHA for 819581b
View code at this point
Browse repository at this point
Commits on May 16, 2016
Expand abbreviations FIFO and LIFO.
serhiy-storchaka
committed
4ecfa45
View commit details
Copy full SHA for 4ecfa45
View code at this point
Browse repository at this point
Commits on Apr 26, 2016
Issue #16394: Note the tee() pure python equivalent is only a rough approximation.
rhettinger
committed
ab425aa
View commit details
Copy full SHA for ab425aa
View code at this point
Browse repository at this point
Commits on Mar 13, 2016
Minor recipe edit: convert "while 1" to "while True".
rhettinger
committed
a503f70
View commit details
Copy full SHA for a503f70
View code at this point
Browse repository at this point
Commits on Mar 7, 2016
Document another recipe for itertools: all_equal(). Inspired by David Beazley.
rhettinger
committed
e525ee3
View commit details
Copy full SHA for e525ee3
View code at this point
Browse repository at this point
Commits on Feb 26, 2016
Closes #25910: fix dead and permanently redirected links in the docs. Thanks to SilentGhost for the patch.
birkenfeld
committed
5d94134
View commit details
Copy full SHA for 5d94134
View code at this point
Browse repository at this point
Commits on Nov 23, 2014
PEP 479: Don't let StopIteration bubble out of calls to next() inside a generator.
rhettinger
committed
828d932
View commit details
Copy full SHA for 828d932
View code at this point
Browse repository at this point
Commits on May 26, 2014
Issue 16774: Add a new itertools recipe (suggested by Alexey Kachayev).
rhettinger
committed
dfe098d
View commit details
Copy full SHA for dfe098d
View code at this point
Browse repository at this point
Commits on Apr 16, 2014
#20103: Rewrite description of itertools.accumulate().
Show description for 15b04eb
akuchling
committed
15b04eb
View commit details
Copy full SHA for 15b04eb
View code at this point
Browse repository at this point
Commits on Apr 2, 2014
Issue #18652: Add an itertools recipe for first_true()
rhettinger
committed
31b26f6
View commit details
Copy full SHA for 31b26f6
View code at this point
Browse repository at this point
Commits on Jan 16, 2014
linkify chain.from_iterable (closes #20272)
benjaminp
committed
2989f58
View commit details
Copy full SHA for 2989f58
View code at this point
Browse repository at this point
Commits on Dec 23, 2013
Removed spaces before commas and periods.
serhiy-storchaka
committed
a4d170d
View commit details
Copy full SHA for a4d170d
View code at this point
Browse repository at this point
Commits on Nov 29, 2013
Issue #19795: Improved markup of True/False constants.
serhiy-storchaka
committed
fbc1c26
View commit details
Copy full SHA for fbc1c26
View code at this point
Browse repository at this point
Commits on Oct 13, 2013
Issue #18758: Fixed and improved cross-references.
serhiy-storchaka
committed
bfdcd43
View commit details
Copy full SHA for bfdcd43
View code at this point
Browse repository at this point
Commits on Oct 12, 2013
Issue #19202: Add cross-reference and a rough code equivalent
rhettinger
committed
6480168
View commit details
Copy full SHA for 6480168
View code at this point
Browse repository at this point
Commits on Sep 9, 2013
Issue 18752: Make chain.from_iterable() more visible in the documentation.
rhettinger
committed
fb92f39
View commit details
Copy full SHA for fb92f39
View code at this point
Browse repository at this point
Issue 18301: The classmethod decorator didn't fit well with the rough-equivalent example code.
rhettinger
committed
1e21ebc
View commit details
Copy full SHA for 1e21ebc
View code at this point
Browse repository at this point
Commits on Jun 21, 2013
Closes #18218: use correct variable name for starting point
akuchling
committed
edb4260
View commit details
Copy full SHA for edb4260
View code at this point
Browse repository at this point
Closes #18272: use 'builtins' for 3.3 instead of __builtin__
akuchling
committed
1d7d580
View commit details
Copy full SHA for 1d7d580
View code at this point
Browse repository at this point
Commits on May 6, 2013
Issue 17862: Improve the signature of itertools grouper() recipe.
Show description for 44571da
rhettinger
committed
44571da
View commit details
Copy full SHA for 44571da
View code at this point
Browse repository at this point
Commits on Sep 14, 2012
#15831: merge with 3.2
ezio-melotti
committed
8429b67
View commit details
Copy full SHA for 8429b67
View code at this point
Browse repository at this point
#15831: document multiple signatures on different lines. Patch by Chris Jerdonek.
ezio-melotti
committed
e0add76
View commit details
Copy full SHA for e0add76
View code at this point
Browse repository at this point
Commits on Jul 8, 2012
Make it easier to search for the grouper() recipe.
rhettinger
committed
9ae9473
View commit details
Copy full SHA for 9ae9473
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.