There was an error while loading. Please reload this page.
1 parent da8e95e commit 5787dd0Copy full SHA for 5787dd0
1 file changed
python/segyio/trace.py
@@ -413,8 +413,10 @@ class RefTrace(Trace):
413
modifications are written back to disk.
414
"""
415
416
- # A truly internally held reference to a trace has count 2 (Python >=
417
- # 3.14) and count 3 otherwise.
+ # If there are no external references to the data (so only internal
+ # references remain), the reference count is
418
+ # - 2 (Python >= 3.14)
419
+ # - 3 (Python < 3.14)
420
_GARBAGE_THRESHOLD = 3 if sys.version_info < (3, 14) else 2
421
422
def __init__(self, *args):
0 commit comments