kenenet 0.6.2__py3-none-any.whl → 0.6.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 CHANGED
@@ -49,7 +49,7 @@ def timer(clock=1):
49
49
 
50
50
  class _Config:
51
51
  EXCLUDED_NAMES = {'Config', 'VariableTracker', 'track_variables', 'stop_tracking',
52
- 'track_frame', 'sys', 'inspect', 'types', 'datetime',
52
+ 'track_frame', 'sys', 'inspect', 'types', 'datetime', 'quick_print',
53
53
  'self', 'cls', 'args', 'kwargs', '__class__'}
54
54
  EXCLUDED_FILES = {'<string>', '<frozen importlib', 'importlib', 'abc.py', 'typing.py', '_collections_abc.py'}
55
55
  SHOW_TIMESTAMPS = True
@@ -76,7 +76,7 @@ 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.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
 
@@ -90,7 +90,7 @@ class _VariableTracker:
90
90
  sys.settrace(_track_frame)
91
91
  self.active = True
92
92
  frame = inspect.currentframe().f_back
93
- lineno = frame.f_lineno.f_back
93
+ lineno = frame.f_lineno
94
94
  quick_print(f"Started debugging", lineno)
95
95
 
96
96
  def _stop_tracking(self):
@@ -99,7 +99,7 @@ class _VariableTracker:
99
99
  self.frame_locals.clear()
100
100
  self.global_vars.clear()
101
101
  self.active = False
102
- frame = inspect.currentframe().f_back.f_back
102
+ frame = inspect.currentframe().f_back
103
103
  lineno = frame.f_lineno
104
104
  quick_print(f"Stopped debugging", lineno)
105
105
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kenenet
3
- Version: 0.6.2
3
+ Version: 0.6.3
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=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,,
@@ -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,,