Skip to content

Commit 5787dd0

Browse files
committed
fixup! Update RefTrace's garbage collection
1 parent da8e95e commit 5787dd0

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

python/segyio/trace.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,10 @@ class RefTrace(Trace):
413413
modifications are written back to disk.
414414
"""
415415

416-
# A truly internally held reference to a trace has count 2 (Python >=
417-
# 3.14) and count 3 otherwise.
416+
# If there are no external references to the data (so only internal
417+
# references remain), the reference count is
418+
# - 2 (Python >= 3.14)
419+
# - 3 (Python < 3.14)
418420
_GARBAGE_THRESHOLD = 3 if sys.version_info < (3, 14) else 2
419421

420422
def __init__(self, *args):

0 commit comments

Comments
 (0)