From 4dcfd999499425719def90b5e96124a978df2580 Mon Sep 17 00:00:00 2001 From: Robert Escriva Date: Mon, 4 Nov 2024 14:55:37 -0800 Subject: [PATCH] [ENH] Comment about integer division. (#3059) In Python // is integer division, but sometimes people see it as a comment. Add a note for anyone applying patches downstream so that they will have to re-evaluate their patch (and hopefully drop it). --- chromadb/segment/impl/manager/local.py | 1 + 1 file changed, 1 insertion(+) diff --git a/chromadb/segment/impl/manager/local.py b/chromadb/segment/impl/manager/local.py index 47a45d18928..9adf51e5cff 100644 --- a/chromadb/segment/impl/manager/local.py +++ b/chromadb/segment/impl/manager/local.py @@ -93,6 +93,7 @@ def __init__(self, system: System): self._max_file_handles = ctypes.windll.msvcrt._getmaxstdio() # type: ignore segment_limit = ( self._max_file_handles + # This is integer division in Python 3, and not a comment. // PersistentLocalHnswSegment.get_file_handle_count() ) self._vector_instances_file_handle_cache = LRUCache(