Skip to content

Commit

Permalink
Removed prints. New reference point
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinugu committed Jun 5, 2024
1 parent b3ea578 commit 686b082
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/omnipy/util/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 686b082

Please sign in to comment.