kenenet 0.6.2__py3-none-any.whl → 0.6.4__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 +6 -4
- {kenenet-0.6.2.dist-info → kenenet-0.6.4.dist-info}/METADATA +1 -1
- kenenet-0.6.4.dist-info/RECORD +5 -0
- kenenet-0.6.2.dist-info/RECORD +0 -5
- {kenenet-0.6.2.dist-info → kenenet-0.6.4.dist-info}/WHEEL +0 -0
- {kenenet-0.6.2.dist-info → kenenet-0.6.4.dist-info}/top_level.txt +0 -0
kenenet/__init__.py
CHANGED
@@ -76,12 +76,14 @@ class _VariableTracker:
|
|
76
76
|
return f"<{type(value).__name__} object>"
|
77
77
|
|
78
78
|
def _print_change(self, name, old, new, scope="Global"):
|
79
|
-
frame = inspect.currentframe().f_back
|
79
|
+
frame = inspect.currentframe().f_back
|
80
80
|
lineno = frame.f_lineno
|
81
81
|
quick_print(f"{scope} '{name}' changed from {self._format_value(old)} -> {self._format_value(new)}", lineno)
|
82
82
|
|
83
83
|
def _should_track(self, name):
|
84
|
-
|
84
|
+
if 'quick_print' in name:
|
85
|
+
return False
|
86
|
+
return not (name.startswith('_') and name not in ('__name__', '__file__')) and name not in Config.EXCLUDED_NAMES
|
85
87
|
|
86
88
|
def _start_tracking(self, module_name):
|
87
89
|
if self.active: return
|
@@ -90,7 +92,7 @@ class _VariableTracker:
|
|
90
92
|
sys.settrace(_track_frame)
|
91
93
|
self.active = True
|
92
94
|
frame = inspect.currentframe().f_back
|
93
|
-
lineno = frame.f_lineno
|
95
|
+
lineno = frame.f_lineno
|
94
96
|
quick_print(f"Started debugging", lineno)
|
95
97
|
|
96
98
|
def _stop_tracking(self):
|
@@ -99,7 +101,7 @@ class _VariableTracker:
|
|
99
101
|
self.frame_locals.clear()
|
100
102
|
self.global_vars.clear()
|
101
103
|
self.active = False
|
102
|
-
frame = inspect.currentframe().f_back
|
104
|
+
frame = inspect.currentframe().f_back
|
103
105
|
lineno = frame.f_lineno
|
104
106
|
quick_print(f"Stopped debugging", lineno)
|
105
107
|
|
@@ -0,0 +1,5 @@
|
|
1
|
+
kenenet/__init__.py,sha256=V_1QkItH8qrNH5crUZdtWQhmF9yAUOcHN_Q_IYUHxKQ,8388
|
2
|
+
kenenet-0.6.4.dist-info/METADATA,sha256=RzhyI7pjum0q09HMHKwXLCc3w_VOjSZiipgaZ1BtqgQ,633
|
3
|
+
kenenet-0.6.4.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
4
|
+
kenenet-0.6.4.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
|
5
|
+
kenenet-0.6.4.dist-info/RECORD,,
|
kenenet-0.6.2.dist-info/RECORD
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
kenenet/__init__.py,sha256=wUqjELCN6VCVwLZwthfUHZ3p4xOVJuMbuR9ohdtfJ2A,8349
|
2
|
-
kenenet-0.6.2.dist-info/METADATA,sha256=ug2bPw17gN9h-ORdttvqnV2s_UHiUhDF2qwzVp0fu8M,633
|
3
|
-
kenenet-0.6.2.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
4
|
-
kenenet-0.6.2.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
|
5
|
-
kenenet-0.6.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|