Closed dastrobu closed 10 months ago
Currently dx.Buffer does not seam to support pythonic negative indexing:
b = dx.buffer_from_vector(list(dict(i=i) for i in range(5)))
b[-1] throws
b[-1]
RuntimeError: FromVector: index out of range
However: b[len(b) - 1] works as expected. Would be nice to support the python convention to use negative indices.
b[len(b) - 1]
Currently dx.Buffer does not seam to support pythonic negative indexing:
b[-1]
throwsHowever:
b[len(b) - 1]
works as expected. Would be nice to support the python convention to use negative indices.