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 }}
sighingnow
unpythonic
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
unpythonic
unpythonic
conditions.py
on
returnvalues
User selector
All users
Datepicker
All time
Commit history
Commits on May 11, 2021
improve docstrings
Technologicat
committed
0fe3d35
View commit details
Copy full SHA for 0fe3d35
View code at this point
Browse repository at this point
fix borked example in docstring
Technologicat
committed
8a90880
View commit details
Copy full SHA for 8a90880
View code at this point
Browse repository at this point
improve resignal, signal
Show description for 20418da
Technologicat
committed
20418da
View commit details
Copy full SHA for 20418da
View code at this point
Browse repository at this point
Split off `excutil` from `misc`; add `reraise`, `resignal`
Technologicat
committed
3f00f5d
View commit details
Copy full SHA for 3f00f5d
View code at this point
Browse repository at this point
Commits on Apr 17, 2021
Python 3.6+: use f-strings instead of str.format in most situations
Show description for 43e4049
Technologicat
committed
43e4049
View commit details
Copy full SHA for 43e4049
View code at this point
Browse repository at this point
Commits on Sep 18, 2020
error message formatting: use repr
Technologicat
committed
713da53
View commit details
Copy full SHA for 713da53
View code at this point
Browse repository at this point
add `cause` parameter to `signal`, `error`, `cerror`, `warn`
Show description for b2b5739
Technologicat
committed
b2b5739
View commit details
Copy full SHA for b2b5739
View code at this point
Browse repository at this point
fix equip_with_traceback (hopefully)
Technologicat
committed
f764000
View commit details
Copy full SHA for f764000
View code at this point
Browse repository at this point
Commits on Aug 29, 2020
signal: convert raised class into an instance
Show description for 5b2203b
Technologicat
committed
5b2203b
View commit details
Copy full SHA for 5b2203b
View code at this point
Browse repository at this point
Commits on Aug 24, 2020
improve coverage
Technologicat
committed
8f0af2a
View commit details
Copy full SHA for 8f0af2a
View code at this point
Browse repository at this point
Commits on Aug 20, 2020
refactor safeissubclass
Technologicat
committed
fb6bf33
View commit details
Copy full SHA for fb6bf33
View code at this point
Browse repository at this point
Commits on Aug 16, 2020
Handle nested tests correctly; fix duplicated `warn()` during tests
Technologicat
committed
5f2f0d0
View commit details
Copy full SHA for 5f2f0d0
View code at this point
Browse repository at this point
cleanliness
Technologicat
committed
1dd1b62
View commit details
Copy full SHA for 1dd1b62
View code at this point
Browse repository at this point
Commits on Aug 14, 2020
Embed a traceback in signaled conditions on Python 3.7+
Technologicat
committed
0e61099
View commit details
Copy full SHA for 0e61099
View code at this point
Browse repository at this point
Commits on Aug 13, 2020
Fix use of `issubclass`; allow BaseException as condition base type
Technologicat
committed
0f385b0
View commit details
Copy full SHA for 0f385b0
View code at this point
Browse repository at this point
Commits on Aug 12, 2020
Bugfix: `signal`, `tryf`
Show description for 897dd59
Technologicat
committed
897dd59
View commit details
Copy full SHA for 897dd59
View code at this point
Browse repository at this point
Commits on Aug 11, 2020
conditions: maybe clearer to `raise ControlError from condition`
Technologicat
committed
e22686d
View commit details
Copy full SHA for e22686d
View code at this point
Browse repository at this point
Commits on Dec 4, 2019
Rename invoke_restart -> invoke
Show description for 7a4a8a3
Technologicat
committed
7a4a8a3
View commit details
Copy full SHA for 7a4a8a3
View code at this point
Browse repository at this point
Improve comments in restarts
Show description for 998f1c6
Technologicat
committed
998f1c6
View commit details
Copy full SHA for 998f1c6
View code at this point
Browse repository at this point
Commits on Nov 24, 2019
conditions: terminology consistency with Common Lisp
Show description for daccbba
Technologicat
committed
daccbba
View commit details
Copy full SHA for daccbba
View code at this point
Browse repository at this point
Commits on Nov 22, 2019
conditions: improve docstrings
Technologicat
committed
cae7994
View commit details
Copy full SHA for cae7994
View code at this point
Browse repository at this point
Remove Condition base class; conditions are just exceptions.
Show description for 0b930a3
Technologicat
committed
0b930a3
View commit details
Copy full SHA for 0b930a3
View code at this point
Browse repository at this point
Improve comment and error message
Technologicat
committed
0508965
View commit details
Copy full SHA for 0508965
View code at this point
Browse repository at this point
conditions: mention restart call signature in docstrings
Technologicat
committed
8c73e1c
View commit details
Copy full SHA for 8c73e1c
View code at this point
Browse repository at this point
conditions: Fix stacklevel in warn wrapper
Technologicat
committed
179146a
View commit details
Copy full SHA for 179146a
View code at this point
Browse repository at this point
conditions: fix corner case
Show description for 4e745a0
Technologicat
committed
4e745a0
View commit details
Copy full SHA for 4e745a0
View code at this point
Browse repository at this point
Fix terminology: cerror = correctable error
Show description for d02771c
Technologicat
committed
d02771c
View commit details
Copy full SHA for d02771c
View code at this point
Browse repository at this point
Commits on Nov 21, 2019
List available restarts when complaining about nonexistent restart
Technologicat
committed
9341735
View commit details
Copy full SHA for 9341735
View code at this point
Browse repository at this point
conditions: make `warn` use Python's `warnings.warn`
Technologicat
committed
676c387
View commit details
Copy full SHA for 676c387
View code at this point
Browse repository at this point
Commits on Oct 25, 2019
Mark a TODO
Technologicat
committed
86c414a
View commit details
Copy full SHA for 86c414a
View code at this point
Browse repository at this point
conditions: improve docstring
Technologicat
committed
c3cc3e5
View commit details
Copy full SHA for c3cc3e5
View code at this point
Browse repository at this point
conditions: make use_value work like in Common Lisp
Show description for bd9a9ed
Technologicat
committed
bd9a9ed
View commit details
Copy full SHA for bd9a9ed
View code at this point
Browse repository at this point
conditions: add test for handler with a tuple of types
Show description for 56f5d6d
Technologicat
committed
56f5d6d
View commit details
Copy full SHA for 56f5d6d
View code at this point
Browse repository at this point
conditions: add `use_value` handler factory
Show description for 1af4894
Technologicat
committed
1af4894
View commit details
Copy full SHA for 1af4894
View code at this point
Browse repository at this point
conditions: allow `invoker` to pass through args, kwargs
Technologicat
committed
d70dbb2
View commit details
Copy full SHA for d70dbb2
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.