issues Search Results · repo:python-trio/exceptiongroup language:Python
Filter by
12 results
(63 ms)12 results
inpython-trio/exceptiongroup (press backspace or delete to remove)As an alternative or addition to #5, it is possible to use Python s try-except natively:
try:
async with something:
something.raise_concurrent()
except MultiError[A]:
print( Handled concurrent ...
maxfischer2781
- 2
- Opened on Jun 19, 2020
- #20
The old MultiError code didn t have to worry about this, because of unwrapping, but we do. If a program terminates with
an ExceptionGroup that consists of only SystemExit exceptions, then it should terminate ...
njsmith
- 1
- Opened on Jan 29, 2019
- #15
I just looked through all the dunder attributes on an exception, comparing them to ExceptionGroup.__copy__, and realized
that we re still missing one: __suppress_context__, which is a bool used to record ...
njsmith
- 1
- Opened on Jan 28, 2019
- #14
As noted here, we have code in ci/travis.sh to check for having run black, but it s broken.
I think we want a PR that:
1. makes it if ! black ..., to fix the check.
2. runs black over the code with ...
njsmith
- Opened on Jan 24, 2019
- #11
Inpired by Switch to black, Maybe it s better to use black for the project now?
WindSoilder
- 2
- Opened on Jan 21, 2019
- #9
Exceptions in general have an unusual convention where you can pass any positional arguments that you want to the
constructor, and they all get stashed as .args, and str(exc) returns str(exc.args[0]) if ...
njsmith
- 2
- Opened on Jan 19, 2019
- #8
That s what it does right now. Is there any good reason for this?
MultiError.filter passed through None, but MultiError.filter had a more general system where handlers took exceptions as
arguments, and ...
njsmith
- 4
- Opened on Jan 19, 2019
- #7
Sometimes after people catch an exception, they need to access attributes on it (e.g., OSError.errno).
But if you do with catch(OSError, handler): ..., then handler has to be prepared to get an ExceptionGroup, ...
njsmith
- Opened on Jan 19, 2019
- #6
See https://github.com/python-trio/trio/issues/611#issuecomment-453269216
This is probably nicer than with catch? @1st1 hates with catch so maybe he ll like this better :-)
njsmith
- 17
- Opened on Jan 19, 2019
- #5
njsmith
- Opened on Jan 19, 2019
- #4

Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Restrict your search to the title by using the in:title qualifier.
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.