Skip to content

Commit 5062389

Browse files
committed
improve comment in example
1 parent 0e16e10 commit 5062389

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/features.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3365,6 +3365,7 @@ class ApplicationException(Exception):
33653365
pass
33663366
33673367
# reraise_in: expr form
3368+
# The mapping is {in0: out0, ...}
33683369
try:
33693370
# reraise_in(thunk, mapping)
33703371
reraise_in(lambda: raisef(LibraryException),
@@ -3388,6 +3389,7 @@ except ApplicationException:
33883389
print("all ok!")
33893390
33903391
# reraise: block form
3392+
# The mapping is {in0: out0, ...}
33913393
try:
33923394
with reraise({LibraryException: ApplicationException}):
33933395
raise LibraryException

0 commit comments

Comments
 (0)