Sitelet
https://github.com/python/cpython/commits/3.11/Doc/tutorial/datastructures.rst
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
37.5k
Star
77.5k
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
tutorial
datastructures.rst
on
3.11
User selector
All users
Datepicker
All time
Commit history
Commits on Feb 1, 2024
[3.11] gh-114648: Add IndexError exception to tutorial datastructures list.pop entry (GH-114681) (#114842)
Show description for a9c2801
miss-islington
and
ShivnarenSrinivasan
authored
a9c2801
View commit details
Copy full SHA for a9c2801
View code at this point
Browse repository at this point
Commits on Aug 21, 2023
[3.11] Improve references in the tutorial (GH-108069) (GH-108204)
Show description for be99653
serhiy-storchaka
authored
be99653
View commit details
Copy full SHA for be99653
View code at this point
Browse repository at this point
Commits on Nov 1, 2022
Doc: use "unnumbered" footnotes (GH-98954)
Show description for 129de5d
miss-islington
and
humitos
authored
129de5d
View commit details
Copy full SHA for 129de5d
View code at this point
Browse repository at this point
Commits on Aug 21, 2022
small grammatical change (GH-96138) (GH-96157)
miss-islington
authored
fedd25e
View commit details
Copy full SHA for fedd25e
View code at this point
Browse repository at this point
Commits on Jun 29, 2022
Docs: Update SyntaxError message in REPL example for list comprehension (GH-93901) (GH-94425)
Show description for cbd562f
miss-islington
and
csabella
authored
cbd562f
View commit details
Copy full SHA for cbd562f
View code at this point
Browse repository at this point
Commits on Apr 30, 2022
gh-85757: Change wording from nested to inner (GH-91811)
Show description for efb87b1
slateny
authored
efb87b1
View commit details
Copy full SHA for efb87b1
View code at this point
Browse repository at this point
Commits on Jan 10, 2022
bpo-46270: Describe the `in` and `not in` operators as membership tests. (GH-30504)
rhettinger
authored
d24cd49
View commit details
Copy full SHA for d24cd49
View code at this point
Browse repository at this point
Commits on Apr 4, 2021
bpo-43325: Add FAQ entry for identity tests (GH-25168)
rhettinger
authored
f8775e4
View commit details
Copy full SHA for f8775e4
View code at this point
Browse repository at this point
Commits on Nov 28, 2020
bpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538)
ZackerySpytz
authored
d41ec65
View commit details
Copy full SHA for d41ec65
View code at this point
Browse repository at this point
Commits on May 18, 2020
bpo-39705 : sorted() tutorial example under looping techniques improved (GH-18999)
kumiDa
authored
eefd4e0
View commit details
Copy full SHA for eefd4e0
View code at this point
Browse repository at this point
Commits on Feb 3, 2020
bpo-38558: Link to further docs from walrus operator mention in tutorial (GH-16973)
adorilson
authored
5807efd
View commit details
Copy full SHA for 5807efd
View code at this point
Browse repository at this point
Commits on Oct 25, 2019
bpo-38558: Mention `:=` in conditions tutorial (GH-16919)
ammaraskar
authored and
zware
committed
cb2cf06
View commit details
Copy full SHA for cb2cf06
View code at this point
Browse repository at this point
Commits on Aug 22, 2019
bpo-14050: Note that not all data can be sorted (GH-15381)
rhettinger
authored
4109263
View commit details
Copy full SHA for 4109263
View code at this point
Browse repository at this point
Commits on Apr 2, 2019
bpo-36377: Specify that range() can not be compared (GH-12468)
eamanu
authored and
rhettinger
committed
b00479d
View commit details
Copy full SHA for b00479d
View code at this point
Browse repository at this point
Commits on Dec 19, 2018
bpo-35506: Remove redundant and incorrect links from keywords. (GH-11174)
serhiy-storchaka
authored
2b57c43
View commit details
Copy full SHA for 2b57c43
View code at this point
Browse repository at this point
Commits on Oct 26, 2018
bpo-35044, doc: Use the :exc: role for the exceptions (GH-10037)
matrixise
authored and
vstinner
committed
e483f02
View commit details
Copy full SHA for e483f02
View code at this point
Browse repository at this point
Commits on Aug 3, 2018
Update list.remove(x) documentation (GH-8636)
Show description for bcd1d97
lysnikolaou
authored and
Mariatta
committed
bcd1d97
View commit details
Copy full SHA for bcd1d97
View code at this point
Browse repository at this point
Commits on Apr 4, 2018
bpo-32337: Update documentats about dict order (GH-4973)
shangdahao
authored and
methane
committed
dfbbbf1
View commit details
Copy full SHA for dfbbbf1
View code at this point
Browse repository at this point
Commits on Jun 10, 2017
bpo-30312: Small correction in datastructures set code sample (GH-2081)
KatherineMichel
authored and
Mariatta
committed
ca81615
View commit details
Copy full SHA for ca81615
View code at this point
Browse repository at this point
Commits on May 3, 2017
bpo-28315: Improve code examples in docs (GH-1372)
Show description for 8856940
ultimatecoder
authored and
Mariatta
committed
8856940
View commit details
Copy full SHA for 8856940
View code at this point
Browse repository at this point
Commits on Mar 13, 2017
bpo-29756: Improve documentation for list methods that compare items by equality (GH-572)
zhangyangyu
authored
b2d7717
View commit details
Copy full SHA for b2d7717
View code at this point
Browse repository at this point
Commits on Feb 25, 2017
Fix small typos in introduction and datastructures of tutorial (GH-272)
Show description for 53c1892
DimitrisJim
authored and
Mariatta
committed
53c1892
View commit details
Copy full SHA for 53c1892
View code at this point
Browse repository at this point
Commits on Nov 22, 2016
Issue #28587: Improve list examples in the tutorial
rhettinger
committed
8c5e190
View commit details
Copy full SHA for 8c5e190
View code at this point
Browse repository at this point
Commits on Nov 21, 2016
Issue 28587: list.index documentation missing start and stop arguments. (Contributed by Mariatta Wijaya.)
rhettinger
committed
5bd5b9d
View commit details
Copy full SHA for 5bd5b9d
View code at this point
Browse repository at this point
Commits on Apr 17, 2016
Issue #26778: Fixed "a/an/and" typos in code comment and documentation.
serhiy-storchaka
committed
6a7b3a7
View commit details
Copy full SHA for 6a7b3a7
View code at this point
Browse repository at this point
Commits on Sep 1, 2015
Improve tutorial suggestion for looping techniques
rhettinger
committed
502bf51
View commit details
Copy full SHA for 502bf51
View code at this point
Browse repository at this point
Commits on Jan 14, 2015
Closes #23181: codepoint -> code point
birkenfeld
committed
3be472b
View commit details
Copy full SHA for 3be472b
View code at this point
Browse repository at this point
Commits on Oct 1, 2014
Merge #21739: mention subtle difference between loops and listcomps in tutorial.
bitdancer
committed
bbf4ae5
View commit details
Copy full SHA for bbf4ae5
View code at this point
Browse repository at this point
#21739: mention subtle difference between loops and listcomps in tutorial.
Show description for 6bd6860
bitdancer
committed
6bd6860
View commit details
Copy full SHA for 6bd6860
View code at this point
Browse repository at this point
Commits on May 27, 2014
Issue 21575: Show list.sort() arguments in the tutorial.
rhettinger
committed
07e0485
View commit details
Copy full SHA for 07e0485
View code at this point
Browse repository at this point
Commits on May 23, 2014
Issue #21545: Add .pop example and tweak comment about pure mutation methods.
Show description for e17de09
terryjreedy
committed
e17de09
View commit details
Copy full SHA for e17de09
View code at this point
Browse repository at this point
Commits on Oct 6, 2013
Add missing list methods. Found by Leonardo Pereira on docs@.
birkenfeld
committed
a12b682
View commit details
Copy full SHA for a12b682
View code at this point
Browse repository at this point
Commits on Nov 17, 2012
Merge rephrasing with 3.2.
ezio-melotti
committed
0bbfae3
View commit details
Copy full SHA for 0bbfae3
View code at this point
Browse repository at this point
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: Merge from 3.2: Add additional note to tutorial about looping.
cjerdonek
committed
38049bb
View commit details
Copy full SHA for 38049bb
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.