kenenet 0.6.3__py3-none-any.whl → 0.6.5__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 CHANGED
@@ -103,33 +103,38 @@ class _VariableTracker:
103
103
  lineno = frame.f_lineno
104
104
  quick_print(f"Stopped debugging", lineno)
105
105
 
106
- def _track_frame(frame, event, arg):
107
- tracker = _VariableTracker._get_instance()
108
- if not tracker.active or event != 'line': return _track_frame
106
+ def track_frame(frame, event, arg):
107
+ tracker = _VariableTracker.get_instance()
108
+ if not tracker.active or event != 'line': return track_frame
109
+
110
+ # Skip tracking if function name is 'quick_print'
111
+ if frame.f_code.co_name == 'quick_print':
112
+ return track_frame
113
+
109
114
  scope = "Global" if frame.f_code.co_name == '<module>' else f"Local in '{frame.f_code.co_name}'"
110
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)}
111
-
116
+
112
117
  if scope == "Global":
113
118
  for name, value in current_vars.items():
114
119
  if name not in tracker.global_vars:
115
- tracker._print_change(name, None, value, scope)
120
+ tracker.print_change(name, None, value, scope)
116
121
  elif tracker.global_vars[name] != value:
117
- tracker._print_change(name, tracker.global_vars[name], value, scope)
122
+ tracker.print_change(name, tracker.global_vars[name], value, scope)
118
123
  tracker.global_vars.update(current_vars)
119
124
  else:
120
125
  frame_id = id(frame)
121
126
  if frame_id not in tracker.frame_locals:
122
127
  for name, value in current_vars.items():
123
- tracker._print_change(name, None, value, scope)
128
+ tracker.print_change(name, None, value, scope)
124
129
  else:
125
130
  for name, value in current_vars.items():
126
131
  if name not in tracker.frame_locals[frame_id]:
127
- tracker._print_change(name, None, value, scope)
132
+ tracker.print_change(name, None, value, scope)
128
133
  elif tracker.frame_locals[frame_id][name] != value:
129
- tracker._print_change(name, tracker.frame_locals[frame_id][name], value, scope)
134
+ tracker.print_change(name, tracker.frame_locals[frame_id][name], value, scope)
130
135
  tracker.frame_locals[frame_id] = current_vars
131
136
  if event == 'return' and scope != "Global": del tracker.frame_locals[id(frame)]
132
- return _track_frame
137
+ return track_frame
133
138
 
134
139
  def debug():
135
140
  global debug_mode
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kenenet
3
- Version: 0.6.3
3
+ Version: 0.6.5
4
4
  Summary: dude what the fuck even is this package
5
5
  Home-page: https://www.youtube.com/@KiddyKene
6
6
  Author: kiddykene
@@ -0,0 +1,5 @@
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,,
@@ -1,5 +0,0 @@
1
- kenenet/__init__.py,sha256=ZizmwHvwagHE-tOYJJVy82eTmXfQnuJ0u7JHtrabr08,8343
2
- kenenet-0.6.3.dist-info/METADATA,sha256=Xf_R3LSYnQkKP3iFulfRDCj9whPmYjx4C0iC0xc6Ja8,633
3
- kenenet-0.6.3.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
4
- kenenet-0.6.3.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
- kenenet-0.6.3.dist-info/RECORD,,