-
-
Notifications
You must be signed in to change notification settings - Fork 371
Closed
Description
prompted by this discussion
The current Store (in the sens of Zarr Python implementation) interface is ill-defined, in particular dict() seem to be special cased in many area:
- tests: many test use dict, while assuming the behavior we see will be true for all stores.
- it is said that a Zarr Store is anything exposing the MutableMapping, though MutableMapping have the property that:
mm[key] = x ; y = mm[key]; assert x == ywhich is currently untrue, as many stores are responsible from encoding/ensuring bytes. - class that would behave like dict/MutableMapping but not be subclass of dict would fail some tests, and return non-bytes in
__getitems__.
Personally I believe that currently trying to say that stores are MutableMapping and dict is an acceptable store is the exception to the rule; proof being that there is a MemoryStore.
Metadata
Metadata
Assignees
Labels
No labels