This repository has been archived by the owner on Oct 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add module frame to catch raises in top-level code, and introduces 3 …
…branch kinds. (#2) 1. Adds a module frame to catch raises in top-level code. 2. Also marks except expressions and finally blocks as branch points. This includes PR #3: Splits "branches" into branches, except_branches, and reraise_branches. * branches are your usual branch decisions: ifs, fors, and whiles. * except_branches are at "except E:" statements, with True indicating the exception matches and False indicating it does not * reraise_branches are at the end of "finally:" blocks, with True indicating the path taken after finally if an error has been raised previously, and False indicating the path taken if there's nothing to reraise at the end of the finally.
- Loading branch information
Showing
3 changed files
with
84 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
scratch | ||
|
||
.DS_Store | ||
__MACOSX | ||
|
||
*~ | ||
__pycache__ | ||
.pytest_cache | ||
python_graphs.egg-info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters