invocation-tree 0.0.16__tar.gz → 0.0.17__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {invocation_tree-0.0.16/invocation_tree.egg-info → invocation_tree-0.0.17}/PKG-INFO +1 -1
- {invocation_tree-0.0.16 → invocation_tree-0.0.17}/invocation_tree/__init__.py +5 -1
- {invocation_tree-0.0.16 → invocation_tree-0.0.17/invocation_tree.egg-info}/PKG-INFO +1 -1
- {invocation_tree-0.0.16 → invocation_tree-0.0.17}/pyproject.toml +1 -1
- {invocation_tree-0.0.16 → invocation_tree-0.0.17}/LICENSE.txt +0 -0
- {invocation_tree-0.0.16 → invocation_tree-0.0.17}/MANIFEST.in +0 -0
- {invocation_tree-0.0.16 → invocation_tree-0.0.17}/README.md +0 -0
- {invocation_tree-0.0.16 → invocation_tree-0.0.17}/images/compute.gif +0 -0
- {invocation_tree-0.0.16 → invocation_tree-0.0.17}/images/compute.py +0 -0
- {invocation_tree-0.0.16 → invocation_tree-0.0.17}/images/create_gif.sh +0 -0
- {invocation_tree-0.0.16 → invocation_tree-0.0.17}/images/create_images.sh +0 -0
- {invocation_tree-0.0.16 → invocation_tree-0.0.17}/images/factorial.gif +0 -0
- {invocation_tree-0.0.16 → invocation_tree-0.0.17}/images/factorial.py +0 -0
- {invocation_tree-0.0.16 → invocation_tree-0.0.17}/images/permutations.gif +0 -0
- {invocation_tree-0.0.16 → invocation_tree-0.0.17}/images/permutations.py +0 -0
- {invocation_tree-0.0.16 → invocation_tree-0.0.17}/images/students.gif +0 -0
- {invocation_tree-0.0.16 → invocation_tree-0.0.17}/images/students.py +0 -0
- {invocation_tree-0.0.16 → invocation_tree-0.0.17}/images/vscode.png +0 -0
- {invocation_tree-0.0.16 → invocation_tree-0.0.17}/invocation_tree.egg-info/SOURCES.txt +0 -0
- {invocation_tree-0.0.16 → invocation_tree-0.0.17}/invocation_tree.egg-info/dependency_links.txt +0 -0
- {invocation_tree-0.0.16 → invocation_tree-0.0.17}/invocation_tree.egg-info/requires.txt +0 -0
- {invocation_tree-0.0.16 → invocation_tree-0.0.17}/invocation_tree.egg-info/top_level.txt +0 -0
- {invocation_tree-0.0.16 → invocation_tree-0.0.17}/setup.cfg +0 -0
|
@@ -7,7 +7,7 @@ import html
|
|
|
7
7
|
import sys
|
|
8
8
|
import difflib
|
|
9
9
|
|
|
10
|
-
__version__ = "0.0.
|
|
10
|
+
__version__ = "0.0.17"
|
|
11
11
|
__author__ = 'Bas Terwijn'
|
|
12
12
|
|
|
13
13
|
def highlight_diff(str1, str2):
|
|
@@ -115,9 +115,12 @@ class Invocation_Tree:
|
|
|
115
115
|
def __call__(self, fun, *args, **kwargs):
|
|
116
116
|
try:
|
|
117
117
|
sys.settrace(self.trace_calls)
|
|
118
|
+
print('calling fun()')
|
|
118
119
|
result = fun(*args, **kwargs)
|
|
120
|
+
print('fun() ended')
|
|
119
121
|
finally:
|
|
120
122
|
sys.settrace(None)
|
|
123
|
+
print('fun() finally')
|
|
121
124
|
return result
|
|
122
125
|
|
|
123
126
|
def value_to_string(self, key, value, use_repr=False):
|
|
@@ -256,6 +259,7 @@ class Invocation_Tree:
|
|
|
256
259
|
return self.graph
|
|
257
260
|
|
|
258
261
|
def trace_calls(self, frame, event, arg):
|
|
262
|
+
print('trace_calls file:', frame.f_code.co_filename, 'line:', frame.f_lineno)
|
|
259
263
|
class_fun_name = get_class_function_name(frame)
|
|
260
264
|
if not class_fun_name in self.ignore_calls:
|
|
261
265
|
if event == 'call':
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{invocation_tree-0.0.16 → invocation_tree-0.0.17}/invocation_tree.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|