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 }}
xiaolanpython
/
cpython
Public
forked from
python/cpython
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
cpython
Doc
tutorial
datastructures.rst
on
3.2
User selector
All users
Datepicker
All time
Commit history
Commits on Nov 17, 2012
Rephrase a sentence in the set and dict comprehensions tutorial page.
ezio-melotti
committed
89b03b0
View commit details
Copy full SHA for 89b03b0
View code at this point
Browse repository at this point
Commits on Oct 16, 2012
Issue #16225: Add additional note to tutorial about changing sequence while looping.
cjerdonek
committed
4fab8f0
View commit details
Copy full SHA for 4fab8f0
View code at this point
Browse repository at this point
Commits on Sep 28, 2012
Close issue #16073: fix map() example in list comprehension documentation.
Show description for fd448da
cjerdonek
committed
fd448da
View commit details
Copy full SHA for fd448da
View code at this point
Browse repository at this point
Commits on Aug 12, 2012
zip() returns an iterator, make a list() of it; thanks to Martin from docs@
sandrotosi
committed
0a90a82
View commit details
Copy full SHA for 0a90a82
View code at this point
Browse repository at this point
Commits on Jun 17, 2012
#14840: Add a bit on the difference between tuples and lists. Initial patch by Zachary Ware.
ezio-melotti
committed
f90ea1f
View commit details
Copy full SHA for f90ea1f
View code at this point
Browse repository at this point
Commits on Dec 13, 2011
#13549: improve tutorial section about listcomps.
ezio-melotti
committed
91621e2
View commit details
Copy full SHA for 91621e2
View code at this point
Browse repository at this point
Commits on Nov 10, 2010
Fix typo.
birkenfeld
committed
1790ed2
View commit details
Copy full SHA for 1790ed2
View code at this point
Browse repository at this point
Commits on Sep 20, 2010
Fix typo.
birkenfeld
committed
448f20b
View commit details
Copy full SHA for 448f20b
View code at this point
Browse repository at this point
Commits on Aug 8, 2010
Issue #4570: Clean-up tutorial example
rhettinger
committed
afdeca9
View commit details
Copy full SHA for afdeca9
View code at this point
Browse repository at this point
Commits on May 21, 2010
Remove redundant example.
birkenfeld
committed
471ed00
View commit details
Copy full SHA for 471ed00
View code at this point
Browse repository at this point
Commits on Mar 31, 2010
Merged revisions 79522 via svnmerge from
Show description for 8f8db14
ezio-melotti
committed
8f8db14
View commit details
Copy full SHA for 8f8db14
View code at this point
Browse repository at this point
Commits on Mar 21, 2010
Merged revisions 79179 via svnmerge from
Show description for 718ce2c
birkenfeld
committed
718ce2c
View commit details
Copy full SHA for 718ce2c
View code at this point
Browse repository at this point
Commits on Jun 16, 2009
The key-value pairs can be lists or tuples or any iterable.
rhettinger
committed
8699aea
View commit details
Copy full SHA for 8699aea
View code at this point
Browse repository at this point
Expand a bit on dict views.
birkenfeld
committed
fc11f27
View commit details
Copy full SHA for fc11f27
View code at this point
Browse repository at this point
Commits on Jun 8, 2009
Fix markup.
birkenfeld
committed
10e0e30
View commit details
Copy full SHA for 10e0e30
View code at this point
Browse repository at this point
Elaborate encoding recommendations, and fix ambiguous wording for list comprehensions.
birkenfeld
committed
7ae90dd
View commit details
Copy full SHA for 7ae90dd
View code at this point
Browse repository at this point
Commits on Apr 5, 2009
Merged revisions 70712,70714,70764-70765,70769-70771,70773,70776-70777,70788-70789,70824,70828,70832,70836,70842,70851,70855,70857,70866-70872,70883,70885,70893-70894,70896-70897,70903,70905-70907,…
Show description for d23f822
benjaminp
committed
d23f822
View commit details
Copy full SHA for d23f822
View code at this point
Browse repository at this point
Commits on Feb 21, 2009
Merged revisions 69846 via svnmerge from
Show description for 934896d
mdickinson
committed
934896d
View commit details
Copy full SHA for 934896d
View code at this point
Browse repository at this point
Commits on Jan 3, 2009
Fix a few remaining problems found by rstlint.
birkenfeld
committed
06788c9
View commit details
Copy full SHA for 06788c9
View code at this point
Browse repository at this point
Merged revisions 68221 via svnmerge from
Show description for a1c6a1c
birkenfeld
committed
a1c6a1c
View commit details
Copy full SHA for a1c6a1c
View code at this point
Browse repository at this point
Remove trailing whitespace.
birkenfeld
committed
48310cd
View commit details
Copy full SHA for 48310cd
View code at this point
Browse repository at this point
Commits on Dec 15, 2008
#4667: fix some 2.x leftovers in the tutorial.
birkenfeld
committed
abffe71
View commit details
Copy full SHA for abffe71
View code at this point
Browse repository at this point
Commits on Dec 14, 2008
tip-toe around dictionary keys view in the tutorial
benjaminp
committed
ff94552
View commit details
Copy full SHA for ff94552
View code at this point
Browse repository at this point
Commits on Dec 7, 2008
Forward-port r67624 and r67627.
birkenfeld
committed
2080ea5
View commit details
Copy full SHA for 2080ea5
View code at this point
Browse repository at this point
Commits on Sep 13, 2008
Forward-port of r66447.
birkenfeld
committed
5d955ed
View commit details
Copy full SHA for 5d955ed
View code at this point
Browse repository at this point
Commits on Aug 8, 2008
#3522: zip() returns an iterator.
birkenfeld
committed
409c9d7
View commit details
Copy full SHA for 409c9d7
View code at this point
Browse repository at this point
Commits on Jul 5, 2008
fix no-op in tutorial
benjaminp
committed
bfc644b
View commit details
Copy full SHA for bfc644b
View code at this point
Browse repository at this point
Commits on May 26, 2008
Merged revisions 63655 via svnmerge from
Show description for e6f0063
benjaminp
committed
e6f0063
View commit details
Copy full SHA for e6f0063
View code at this point
Browse repository at this point
Commits on May 13, 2008
Convert a lot of print statements to print functions in docstrings,
Show description for 752abd0
nnorwitz
committed
752abd0
View commit details
Copy full SHA for 752abd0
View code at this point
Browse repository at this point
Commits on May 12, 2008
Remove duplicated paragraph.
birkenfeld
committed
dce26da
View commit details
Copy full SHA for dce26da
View code at this point
Browse repository at this point
Commits on Mar 22, 2008
Merged revisions 61687-61688,61696,61700,61704-61705,61707-61709,61711-61712,61714-61716,61718-61722 via svnmerge from
Show description for 4fbc72b
tiran
committed
4fbc72b
View commit details
Copy full SHA for 4fbc72b
View code at this point
Browse repository at this point
Commits on Feb 1, 2008
Update docs w.r.t. PEP 3100 changes -- patch for GHOP by Dan Finnie.
birkenfeld
committed
f694518
View commit details
Copy full SHA for f694518
View code at this point
Browse repository at this point
Commits on Dec 31, 2007
Merged revisions 59605-59624 via svnmerge from
Show description for 5b5e81c
tiran
committed
5b5e81c
View commit details
Copy full SHA for 5b5e81c
View code at this point
Browse repository at this point
Commits on Dec 15, 2007
Merged revisions 59488-59511 via svnmerge from
Show description for 0449f63
tiran
committed
0449f63
View commit details
Copy full SHA for 0449f63
View code at this point
Browse repository at this point
Commits on Oct 8, 2007
#1228: new comparison behavior.
birkenfeld
committed
9f2c39a
View commit details
Copy full SHA for 9f2c39a
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.