Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
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 }}
pythoncapi
cpython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Doc
tutorial
controlflow.rst
on
pythoncapi
User selector
All users
Datepicker
All time
Commit history
Commits on Apr 25, 2018
Mention both relevant PEPs in function annotations tutorial (GH-6304)
Show description for 643ff71
neerajbadlani
authored and
zware
committed
643ff71
View commit details
Copy full SHA for 643ff71
View code at this point
Browse repository at this point
Commits on Mar 9, 2018
controlflow: Use full example for "5 through 9" (GH-5907)
Show description for 83d7062
Stevoisiak
authored and
Mariatta
committed
83d7062
View commit details
Copy full SHA for 83d7062
View code at this point
Browse repository at this point
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
Previous
Next
You can’t perform that action at this time.