kenenet 0.7.1__py3-none-any.whl → 0.7.3__py3-none-any.whl
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.
- kenenet/__init__.py +8 -8
- {kenenet-0.7.1.dist-info → kenenet-0.7.3.dist-info}/METADATA +1 -1
- kenenet-0.7.3.dist-info/RECORD +5 -0
- kenenet-0.7.1.dist-info/RECORD +0 -5
- {kenenet-0.7.1.dist-info → kenenet-0.7.3.dist-info}/WHEEL +0 -0
- {kenenet-0.7.1.dist-info → kenenet-0.7.3.dist-info}/top_level.txt +0 -0
kenenet/__init__.py
CHANGED
@@ -87,7 +87,7 @@ class _VariableTracker:
|
|
87
87
|
self.global_vars = {name: value for name, value in module.__dict__.items() if self._should_track(name)}
|
88
88
|
sys.settrace(_track_frame)
|
89
89
|
self.active = True
|
90
|
-
frame = inspect.currentframe()
|
90
|
+
frame = inspect.currentframe()
|
91
91
|
lineno = frame.f_lineno
|
92
92
|
quick_print(f"Started debugging", lineno)
|
93
93
|
|
@@ -97,8 +97,8 @@ class _VariableTracker:
|
|
97
97
|
self.frame_locals.clear()
|
98
98
|
self.global_vars.clear()
|
99
99
|
self.active = False
|
100
|
-
frame = inspect.currentframe()
|
101
|
-
lineno = frame.f_lineno
|
100
|
+
frame = inspect.currentframe()
|
101
|
+
lineno = frame.f_lineno.fba
|
102
102
|
quick_print(f"Stopped debugging", lineno)
|
103
103
|
|
104
104
|
def _track_frame(frame, event, arg):
|
@@ -117,21 +117,21 @@ def _track_frame(frame, event, arg):
|
|
117
117
|
if scope == "Global":
|
118
118
|
for name, value in current_vars.items():
|
119
119
|
if name not in tracker.global_vars:
|
120
|
-
tracker._print_change(name, None, value,
|
120
|
+
tracker._print_change(name, None, value, line_number, scope)
|
121
121
|
elif tracker.global_vars[name] != value:
|
122
|
-
tracker._print_change(name, tracker.global_vars[name], value,
|
122
|
+
tracker._print_change(name, tracker.global_vars[name], value, line_number, scope)
|
123
123
|
tracker.global_vars.update(current_vars)
|
124
124
|
else:
|
125
125
|
frame_id = id(frame)
|
126
126
|
if frame_id not in tracker.frame_locals:
|
127
127
|
for name, value in current_vars.items():
|
128
|
-
tracker._print_change(name, None, value,
|
128
|
+
tracker._print_change(name, None, value, line_number, scope)
|
129
129
|
else:
|
130
130
|
for name, value in current_vars.items():
|
131
131
|
if name not in tracker.frame_locals[frame_id]:
|
132
|
-
tracker._print_change(name, None, value,
|
132
|
+
tracker._print_change(name, None, value, line_number, scope)
|
133
133
|
elif tracker.frame_locals[frame_id][name] != value:
|
134
|
-
tracker._print_change(name, tracker.frame_locals[frame_id][name], value,
|
134
|
+
tracker._print_change(name, tracker.frame_locals[frame_id][name], value, line_number, scope)
|
135
135
|
tracker.frame_locals[frame_id] = current_vars
|
136
136
|
if event == 'return' and scope != "Global": del tracker.frame_locals[id(frame)]
|
137
137
|
return _track_frame
|
@@ -0,0 +1,5 @@
|
|
1
|
+
kenenet/__init__.py,sha256=xDlULOyme_-64S_8mLY_nO3epopLDiVZpQ1LsATyxHc,8548
|
2
|
+
kenenet-0.7.3.dist-info/METADATA,sha256=tui1DqkaZX23qAzXDURiFhl80UNDBZZyEF3LUHcQ9Jk,633
|
3
|
+
kenenet-0.7.3.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
4
|
+
kenenet-0.7.3.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
|
5
|
+
kenenet-0.7.3.dist-info/RECORD,,
|
kenenet-0.7.1.dist-info/RECORD
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
kenenet/__init__.py,sha256=4sqjI1TSHA3b69C4t5tLHDRzhhIoHz8UhF4ry-G2060,8558
|
2
|
-
kenenet-0.7.1.dist-info/METADATA,sha256=-kS_EK-E11nOO5Jo4WcOnvvD4b7GJA1Yk6YNRaqAKME,633
|
3
|
-
kenenet-0.7.1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
4
|
-
kenenet-0.7.1.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
|
5
|
-
kenenet-0.7.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|