Closed kylebarron closed 4 weeks ago
From https://github.com/zarr-developers/zarr-python/pull/1661#issuecomment-2433392608:
Note that they can can be negative, so a suffix range would be
(-N, None)
.
@martindurant for now this PR uses (None, N)
for a suffix request, where N
is positive. This is documented in the docstring.
We may change this in the future to be a dict, with keys like offset
, bounded
, and suffix
, to more closely match the upstream type: https://docs.rs/object_store/latest/object_store/enum.GetRange.html
for now this PR uses (None, N)
That looks a lot like "first N bytes" to me, not suffix :| I could be biased.
I think in general it's too easy to get confused by these. But there's no reason to use (None, N)
when you can easily by explicit about (0, N)
.
Closes https://github.com/developmentseed/object-store-rs/issues/10