kenenet 0.6.5__py3-none-any.whl → 0.6.9__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 +5 -5
- {kenenet-0.6.5.dist-info → kenenet-0.6.9.dist-info}/METADATA +1 -1
- kenenet-0.6.9.dist-info/RECORD +5 -0
- kenenet-0.6.5.dist-info/RECORD +0 -5
- {kenenet-0.6.5.dist-info → kenenet-0.6.9.dist-info}/WHEEL +0 -0
- {kenenet-0.6.5.dist-info → kenenet-0.6.9.dist-info}/top_level.txt +0 -0
kenenet/__init__.py
CHANGED
@@ -103,13 +103,13 @@ class _VariableTracker:
|
|
103
103
|
lineno = frame.f_lineno
|
104
104
|
quick_print(f"Stopped debugging", lineno)
|
105
105
|
|
106
|
-
def
|
107
|
-
tracker = _VariableTracker.
|
108
|
-
if not tracker.active or event != 'line': return
|
106
|
+
def _track_frame(frame, event, arg):
|
107
|
+
tracker = _VariableTracker._get_instance()
|
108
|
+
if not tracker.active or event != 'line': return _track_frame
|
109
109
|
|
110
110
|
# Skip tracking if function name is 'quick_print'
|
111
111
|
if frame.f_code.co_name == 'quick_print':
|
112
|
-
return
|
112
|
+
return _track_frame
|
113
113
|
|
114
114
|
scope = "Global" if frame.f_code.co_name == '<module>' else f"Local in '{frame.f_code.co_name}'"
|
115
115
|
current_vars = {name: value for name, value in (frame.f_locals if scope != "Global" else frame.f_globals).items() if tracker._should_track(name)}
|
@@ -134,7 +134,7 @@ def track_frame(frame, event, arg):
|
|
134
134
|
tracker.print_change(name, tracker.frame_locals[frame_id][name], value, 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
|
-
return
|
137
|
+
return _track_frame
|
138
138
|
|
139
139
|
def debug():
|
140
140
|
global debug_mode
|
@@ -0,0 +1,5 @@
|
|
1
|
+
kenenet/__init__.py,sha256=cf4lc2OJTzPKdWcEBtmwBSRDEBlEttM3iUZ0jGTrapg,8469
|
2
|
+
kenenet-0.6.9.dist-info/METADATA,sha256=ZoR7Cl2wwfFBXhtsKpkRX1Ek5jSvzddmSxfClql6rgE,633
|
3
|
+
kenenet-0.6.9.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
4
|
+
kenenet-0.6.9.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
|
5
|
+
kenenet-0.6.9.dist-info/RECORD,,
|
kenenet-0.6.5.dist-info/RECORD
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
kenenet/__init__.py,sha256=GX9-JmTxzdj996qm_1fC3z4wHDPWlnZVnmn177T5Jqw,8464
|
2
|
-
kenenet-0.6.5.dist-info/METADATA,sha256=rjKeSqAQLHW8N7weRtaBYjKBO_cMTtGCV3xD43SzymI,633
|
3
|
-
kenenet-0.6.5.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
4
|
-
kenenet-0.6.5.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
|
5
|
-
kenenet-0.6.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|