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 }}
python
cpython
Repository navigation
Code
Issues
5k+
(5k+)
Pull requests
2.4k
(2.4k)
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Doc
tutorial
errors.rst
on
main
User selector
All users
Datepicker
All time
Commit history
Commits on Oct 27, 2026
Doc: Fix errors in documentation examples (#160742)
Show description for 085d366
methane
and
StanFromIreland
authored
085d366
View commit details
Copy full SHA for 085d366
View code at this point
Browse repository at this point
Commits on Mar 18, 2026
docs: fix f-string in ExceptionGroup example (#146108)
bartosz-grabowski
authored
2c6afb9
View commit details
Copy full SHA for 2c6afb9
View code at this point
Browse repository at this point
Commits on Mar 13, 2026
Docs: except with multiple exceptions parentheses not required (#145848)
Show description for 6d1e9ce
duilio
authored
6d1e9ce
View commit details
Copy full SHA for 6d1e9ce
View code at this point
Browse repository at this point
Commits on Mar 17, 2025
gh-130080: implement PEP 765 (#130087)
iritkatriel
authored
ffc2f1d
View commit details
Copy full SHA for ffc2f1d
View code at this point
Browse repository at this point
gh-116666: Add "token" glossary term (GH-130888)
Show description for 30d5205
encukou
and
AA-Turner
authored
30d5205
View commit details
Copy full SHA for 30d5205
View code at this point
Browse repository at this point
Commits on Nov 25, 2024
gh-127265: Remove single quotes from 'arrow's in tutorial/errors.rst (GH-127267)
funkyrailroad
authored
26ff32b
View commit details
Copy full SHA for 26ff32b
View code at this point
Browse repository at this point
Commits on Oct 26, 2024
Fix a typo in ``Doc/tutorial/errors.rst`` exception output (#126001)
bogdanap
authored
a78d5b3
View commit details
Copy full SHA for a78d5b3
View code at this point
Browse repository at this point
Commits on Sep 13, 2024
Update to 3.13 the output of exceptions raised (#123888)
rffontenelle
authored
3961210
View commit details
Copy full SHA for 3961210
View code at this point
Browse repository at this point
Commits on Apr 9, 2024
gh-117597: Clarify exception handling in the tutorial (#117681)
nineteendo
authored
a05068d
View commit details
Copy full SHA for a05068d
View code at this point
Browse repository at this point
Commits on Mar 11, 2024
gh-116563: Update tutorial error example (#116569)
Show description for 3e45030
terryjreedy
authored
3e45030
View commit details
Copy full SHA for 3e45030
View code at this point
Browse repository at this point
Commits on Nov 19, 2023
gh-110383: Explained which error message is generated when there is an unhandled exception (#111574)
Show description for a6d25de
Unique-Usman
and
hugovk
authored
a6d25de
View commit details
Copy full SHA for a6d25de
View code at this point
Browse repository at this point
Commits on Jul 29, 2023
gh-101100: Sphinx warnings: pick the low hanging fruits (GH-107386)
serhiy-storchaka
authored
f2d07d3
View commit details
Copy full SHA for f2d07d3
View code at this point
Browse repository at this point
Commits on Jul 22, 2023
Reformat code block to make it easier to read (#106965)
itsthejoker
authored
ed491d9
View commit details
Copy full SHA for ed491d9
View code at this point
Browse repository at this point
Commits on Jul 6, 2023
Doc: Add missing ref labels to exception groups/notes sections (#106465)
CAM-Gerlach
authored
38aa89a
View commit details
Copy full SHA for 38aa89a
View code at this point
Browse repository at this point
Commits on Mar 22, 2023
[doc] Fix error in tutorial example: type(exc) is the type rather than the instance (#102751)
jenshb
authored
8709697
View commit details
Copy full SHA for 8709697
View code at this point
Browse repository at this point
Commits on Nov 5, 2022
[doc] fix typo (GH-99143)
visualdoj
authored
586b07e
View commit details
Copy full SHA for 586b07e
View code at this point
Browse repository at this point
Commits on Oct 5, 2022
gh-97654: Add auto exception chaining example to tutorial (#97703)
Show description for 395b66a
smheidrich
authored
395b66a
View commit details
Copy full SHA for 395b66a
View code at this point
Browse repository at this point
Commits on Apr 20, 2022
gh-89770: [PEP-678] add exception notes to tutorial (GH-30441)
iritkatriel
authored
f92bcfe
View commit details
Copy full SHA for f92bcfe
View code at this point
Browse repository at this point
Commits on Apr 13, 2022
gh-90449: Improve accuracy and readability of exceptions tutorial (GH-31899)
iritkatriel
authored
04f9658
View commit details
Copy full SHA for 04f9658
View code at this point
Browse repository at this point
Commits on Jan 13, 2022
bpo-46328: Add sys.exception() (GH-30514)
iritkatriel
authored
c590b58
View commit details
Copy full SHA for c590b58
View code at this point
Browse repository at this point
Commits on Jan 6, 2022
bpo-45292: [PEP-654] exception groups and except* documentation (GH-30158)
iritkatriel
authored
9925e70
View commit details
Copy full SHA for 9925e70
View code at this point
Browse repository at this point
Commits on Jan 3, 2022
bpo-34538: Remove Exception subclassing from tutorial (GH-30361)
Show description for 2db5613
hugovk
authored
2db5613
View commit details
Copy full SHA for 2db5613
View code at this point
Browse repository at this point
Commits on Aug 21, 2021
bpo-44966: Fix out-of-date traceback message (GH-27867)
rhettinger
authored
15a64d8
View commit details
Copy full SHA for 15a64d8
View code at this point
Browse repository at this point
Commits on Aug 6, 2021
bpo-41576: document BaseException in favor of bare except (GH-21917)
graingert
authored
e9a6f1b
View commit details
Copy full SHA for e9a6f1b
View code at this point
Browse repository at this point
Commits on May 21, 2021
bpo-43927: Change 'IOError' to 'OSError' (GH-26289)
Show description for 2f47d8d
terryjreedy
authored
2f47d8d
View commit details
Copy full SHA for 2f47d8d
View code at this point
Browse repository at this point
Commits on May 4, 2021
bpo-32822: Add finally with return/break/continue to the tutorial (#25600)
Show description for a0b9915
robertohueso
authored
a0b9915
View commit details
Copy full SHA for a0b9915
View code at this point
Browse repository at this point
Commits on Apr 29, 2021
bpo-42589: Change URL for 'from' link when used in a raised exception (GH-23872)
Show description for 2fd928c
sblondon
authored
2fd928c
View commit details
Copy full SHA for 2fd928c
View code at this point
Browse repository at this point
Commits on Jan 31, 2021
Doc: errors tutorial improvements (GH-16269)
Show description for 89294e3
adorilson
authored
89294e3
View commit details
Copy full SHA for 89294e3
View code at this point
Browse repository at this point
Commits on Dec 16, 2020
bpo-42179: Clarify exception chaining (GH-23160)
Show description for 3f9fe23
greatvovan
authored
3f9fe23
View commit details
Copy full SHA for 3f9fe23
View code at this point
Browse repository at this point
Commits on Nov 6, 2020
bpo-42179: Doc/tutorial: Remove mention of __cause__ (GH-23162)
methane
authored
bde33e4
View commit details
Copy full SHA for bde33e4
View code at this point
Browse repository at this point
Commits on May 1, 2020
Change 'exception happened' to 'exception occurred' in two places (#19767)
doersino
authored
8bcfd31
View commit details
Copy full SHA for 8bcfd31
View code at this point
Browse repository at this point
Commits on Feb 6, 2020
bpo-39534: Doc: Clarify return in finally (GH-18324)
JulienPalard
authored
446463f
View commit details
Copy full SHA for 446463f
View code at this point
Browse repository at this point
Commits on Sep 26, 2019
bpo-38130: Fix error in explaining when an exception is re-raised (GH-16016)
Show description for 1ad7be2
2 people
authored and
matrixise
committed
1ad7be2
View commit details
Copy full SHA for 1ad7be2
View code at this point
Browse repository at this point
Commits on Sep 19, 2019
Doc: Corrected syntax for return annotation (GH-16265)
Show description for 9ab6038
pluradj-ibm
authored and
matrixise
committed
9ab6038
View commit details
Copy full SHA for 9ab6038
View code at this point
Browse repository at this point
Commits on Sep 11, 2019
Improve clarity of try-return-finally-return (GH-15677)
Show description for 0cc2741
toonarmycaptain
authored and
matrixise
committed
0cc2741
View commit details
Copy full SHA for 0cc2741
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.