Skip to content

Commit

Permalink
[ENH] Comment about integer division. (#3059)
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
rescrv authored Nov 4, 2024
1 parent 56588cc commit 4dcfd99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chromadb/segment/impl/manager/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 4dcfd99

Please sign in to comment.