Skip to content

Commit 5094897

Browse files
committed
python: unify change notes with fixes
1 parent 4ddb503 commit 5094897

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

python/ql/lib/change-notes/2022-11-14-grouped-exceptions-breaking.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

python/ql/lib/change-notes/2022-11-14-grouped-exceptions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
category: fix
33
---
44
* `except*` is now supported.
5+
* The result of `Try.getAHandler` and `Try.getHandler(<index>)` is no longer of type `ExceptStmt`, as handlers may also be `ExceptGroupStmt`s (After Python 3.11 introduced PEP 654). Instead, it is of the new type `ExceptionHandler` of which `ExceptStmt` and `ExceptGroupStmt` are subtypes. To support selecting only one type of handler, `Try.getANormalHandler` and `Try.getAGroupHandler` have been added. Existing uses of `Try.getAHandler` for which it is important to select only normal handlers, will need to be updated to `Try.getANormalHandler`.

0 commit comments

Comments
 (0)