aboutsummaryrefslogtreecommitdiff
path: root/pyecsca/ec/context.py
diff options
context:
space:
mode:
authorJ08nY2024-06-01 15:07:07 +0200
committerJ08nY2024-06-01 15:07:07 +0200
commit3f22cdec33ceff27bfdc6baae456950240936098 (patch)
tree4e8470435546f2b69f8828347a089e830b7412b3 /pyecsca/ec/context.py
parent5ddfea8c12b2e76fa7aed8eb146c8c385e2abe60 (diff)
downloadpyecsca-3f22cdec33ceff27bfdc6baae456950240936098.tar.gz
pyecsca-3f22cdec33ceff27bfdc6baae456950240936098.tar.zst
pyecsca-3f22cdec33ceff27bfdc6baae456950240936098.zip
Diffstat (limited to 'pyecsca/ec/context.py')
-rw-r--r--pyecsca/ec/context.py11
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