From 686b082cd7bd32535a843073c7cae203011de0ae Mon Sep 17 00:00:00 2001 From: Sveinung Gundersen Date: Wed, 5 Jun 2024 10:40:23 +0200 Subject: [PATCH] Removed prints. New reference point --- src/omnipy/util/helpers.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/omnipy/util/helpers.py b/src/omnipy/util/helpers.py index 79b39ea0..c2aacb98 100644 --- a/src/omnipy/util/helpers.py +++ b/src/omnipy/util/helpers.py @@ -423,16 +423,16 @@ def _remove_deleted_objs(self, keys_to_delete: list[int]): # v = 0 ref_count_target = 2 # print(f'ref_count_target: {ref_count_target}') - for i, ref in enumerate(gc.get_referrers(self.data[key])): - try: - print(f'Reference {i}') - print('------------') - print(f'{type(ref)}: {ref}') - print(*gc.get_referrers(ref)) - except Exception as e: - print(f'Error: {repr(e)}') - pass - del ref + # for i, ref in enumerate(gc.get_referrers(self.data[key])): + # try: + # print(f'Reference {i}') + # print('------------') + # print(f'{type(ref)}: {ref}') + # print(*gc.get_referrers(ref)) + # except Exception as e: + # print(f'Error: {repr(e)}') + # pass + # del ref # loc = locals() # print(f'locals(): {loc}') # del loc