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 }}
bob1de
cpython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Doc
tutorial
controlflow.rst
on
master
User selector
All users
Datepicker
All time
Commit history
Commits on Jun 27, 2017
Clarification to the `break` statement (GH-2453)
Show description for 36fc896
regexaurus
authored and
Mariatta
committed
36fc896
View commit details
Copy full SHA for 36fc896
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 Feb 21, 2017
bpo-29453: Remove reference to undefined dictionary ordering in Tutorial (GH-140)
Show description for 32e8f9b
DimitrisJim
authored and
Mariatta
committed
32e8f9b
View commit details
Copy full SHA for 32e8f9b
View code at this point
Browse repository at this point
Commits on Jul 29, 2016
Issue #26462: Merge code block fixes from 3.5
vadmium
committed
6a09315
View commit details
Copy full SHA for 6a09315
View code at this point
Browse repository at this point
Commits on Jul 26, 2016
Issue #26462: Doc: reduce literal_block warnings, fix syntax highlighting.
Show description for 1050d2d
vadmium
committed
1050d2d
View commit details
Copy full SHA for 1050d2d
View code at this point
Browse repository at this point
Commits on Jun 2, 2016
Issue #23116: Improve ask_ok() example in the Python tutorial
berkerpeksag
committed
0a5120e
View commit details
Copy full SHA for 0a5120e
View code at this point
Browse repository at this point
Issue #23116: Merge from 3.5
berkerpeksag
committed
9c27c18
View commit details
Copy full SHA for 9c27c18
View code at this point
Browse repository at this point
Commits on May 10, 2016
Issue #23921: Standardized documentation whitespace formatting.
Show description for c499f30
serhiy-storchaka
committed
c499f30
View commit details
Copy full SHA for c499f30
View code at this point
Browse repository at this point
Issue #23921: Standardized documentation whitespace formatting.
Show description for dba9039
serhiy-storchaka
committed
dba9039
View commit details
Copy full SHA for dba9039
View code at this point
Browse repository at this point
Commits on Feb 15, 2016
Minor clarification in tutorial.
birkenfeld
committed
40383c8
View commit details
Copy full SHA for 40383c8
View code at this point
Browse repository at this point
Commits on Apr 13, 2015
Issue #23932: Update the tutorial section on function annotations.
Show description for f3b990e
zware
committed
f3b990e
View commit details
Copy full SHA for f3b990e
View code at this point
Browse repository at this point
Commits on Mar 31, 2014
Get rid of deprecated IOError in the doc
asvetlov
committed
08af000
View commit details
Copy full SHA for 08af000
View code at this point
Browse repository at this point
Commits on Feb 3, 2014
Use different word
akuchling
committed
3633da2
View commit details
Copy full SHA for 3633da2
View code at this point
Browse repository at this point
Commits on Nov 17, 2013
Fix indentation in doc example.
ezio-melotti
committed
e65cb19
View commit details
Copy full SHA for e65cb19
View code at this point
Browse repository at this point
Commits on Oct 6, 2013
Use "lambda expression" as preferred to "lambda form".
birkenfeld
committed
242e6a0
View commit details
Copy full SHA for 242e6a0
View code at this point
Browse repository at this point
Closes #18646: improve lambda docs in tutorial. Original patch by Terry Reedy.
birkenfeld
committed
de5aff1
View commit details
Copy full SHA for de5aff1
View code at this point
Browse repository at this point
Commits on Nov 1, 2012
Issue #14893: Add function annotation example to function tutorial.
Show description for 1491cbd
asvetlov
committed
1491cbd
View commit details
Copy full SHA for 1491cbd
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 Aug 18, 2012
tutorial typo fix
eliben
committed
31a1190
View commit details
Copy full SHA for 31a1190
View code at this point
Browse repository at this point
Commits on Aug 12, 2012
Issue #15630: Add an example for "continue" statement in the tutorial. Patch by
Show description for 1ef9caa
orsenthil
committed
1ef9caa
View commit details
Copy full SHA for 1ef9caa
View code at this point
Browse repository at this point
Commits on Jun 7, 2012
Nudge readers towards a more accurate mental model for loop else clauses
ncoghlan
committed
a3a164a
View commit details
Copy full SHA for a3a164a
View code at this point
Browse repository at this point
Commits on Dec 13, 2011
#6570: clarify tutorial section about keyword arguments.
ezio-melotti
committed
7b7e39a
View commit details
Copy full SHA for 7b7e39a
View code at this point
Browse repository at this point
Commits on Aug 8, 2011
Confirm that the prime example is actually correct. We get so many complaints about a "buggy example" on docs@python, let us hope this cuts them in half at least.
birkenfeld
committed
bdbdfb1
View commit details
Copy full SHA for bdbdfb1
View code at this point
Browse repository at this point
Commits on Oct 15, 2010
Refrain from using inline suites.
birkenfeld
committed
70543ac
View commit details
Copy full SHA for 70543ac
View code at this point
Browse repository at this point
Commits on Jun 27, 2010
Wording fix.
birkenfeld
committed
7d82106
View commit details
Copy full SHA for 7d82106
View code at this point
Browse repository at this point
Commits on Nov 23, 2009
Merged revisions 76460 via svnmerge from
Show description for c099ee2
mdickinson
committed
c099ee2
View commit details
Copy full SHA for c099ee2
View code at this point
Browse repository at this point
Commits on Jun 8, 2009
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
Merged revisions 73190,73213,73257-73258,73260,73275,73294 via svnmerge from
Show description for c6c3178
birkenfeld
committed
c6c3178
View commit details
Copy full SHA for c6c3178
View code at this point
Browse repository at this point
Commits on Jan 3, 2009
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 27, 2008
Merged revisions 67889-67892,67895,67898,67904-67907,67912,67918,67920-67921,67923-67924,67926-67927,67930,67943 via svnmerge from
Show description for 9203501
benjaminp
committed
9203501
View commit details
Copy full SHA for 9203501
View code at this point
Browse repository at this point
Commits on Dec 7, 2008
Merged revisions 67531-67532,67538,67553-67554,67556-67557,67571,67574-67575,67579-67580,67591,67597,67608,67631 via svnmerge from
Show description for af265f4
birkenfeld
committed
af265f4
View commit details
Copy full SHA for af265f4
View code at this point
Browse repository at this point
Commits on Nov 7, 2008
Merged revisions 67117-67119,67123-67124,67143 via svnmerge from
Show description for a971c65
birkenfeld
committed
a971c65
View commit details
Copy full SHA for a971c65
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 5, 2008
#3503: fix print statements in 3k doc.
birkenfeld
committed
11e18b0
View commit details
Copy full SHA for 11e18b0
View code at this point
Browse repository at this point
Commits on Jun 10, 2008
Merged revisions 63724,63726,63732,63744,63754-63755,63757-63758,63760,63775,63781-63782,63787,63805-63808,63818-63819,63823-63824 via svnmerge from
Show description for f08a9dd
birkenfeld
committed
f08a9dd
View commit details
Copy full SHA for f08a9dd
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.