Describe the bug
See: #494
Created a new issue here due to potential security implications.
Steps to reproduce
from usearch.index import Index
import numpy as np
index = Index(ndim=3)
index.add(1, np.array([0.1, 0.2, 0.3]))
print(f"Existent Key 1: {index.get(1)}") # Works
print(f"Non-Existent Key 999: {index.get(999)}") # Bug: returns garbage instead of None
Expected behavior
Return None for non-existent keys
USearch version
v2.21.0
Operating System
Windows 10
Hardware architecture
x86
Which interface are you using?
Python bindings
Contact Details
tp@iscc.io
Are you open to being tagged as a contributor?
Is there an existing issue for this?
Code of Conduct