diff options
| author | J08nY | 2024-06-01 15:07:07 +0200 |
|---|---|---|
| committer | J08nY | 2024-06-01 15:07:07 +0200 |
| commit | 3f22cdec33ceff27bfdc6baae456950240936098 (patch) | |
| tree | 4e8470435546f2b69f8828347a089e830b7412b3 /pyecsca/ec/context.py | |
| parent | 5ddfea8c12b2e76fa7aed8eb146c8c385e2abe60 (diff) | |
| download | pyecsca-3f22cdec33ceff27bfdc6baae456950240936098.tar.gz pyecsca-3f22cdec33ceff27bfdc6baae456950240936098.tar.zst pyecsca-3f22cdec33ceff27bfdc6baae456950240936098.zip | |
Diffstat (limited to 'pyecsca/ec/context.py')
| -rw-r--r-- | pyecsca/ec/context.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/pyecsca/ec/context.py b/pyecsca/ec/context.py index 175da9d..5b30460 100644 --- a/pyecsca/ec/context.py +++ b/pyecsca/ec/context.py @@ -24,6 +24,7 @@ class Action: An Action. Can be entered: + >>> with Action() as action: ... print(action.inside) True @@ -243,15 +244,15 @@ class DefaultContext(Context): ... with Action() as yet_another: ... pass >>> ctx.actions # doctest: +NORMALIZE_WHITESPACE, +ELLIPSIS - <context.Action ... - <context.ResultAction ... - <context.Action ... + <...Action ... + <...ResultAction ... + <...Action ... <BLANKLINE> >>> root, subtree = ctx.actions.get_by_index([0]) >>> for action in subtree: # doctest: +ELLIPSIS ... print(action) - <context.ResultAction ... - <context.Action ... + <...ResultAction ... + <...Action ... """ actions: Tree |
