Clarify semantics for reading from a closed store with mode='w'
.
#2338
Labels
bug
Potential issues with the zarr-python library
mode='w'
.
#2338
Zarr version
v3
Numcodecs version
na
Python Version
na
Operating System
na
Installation
na
Description
v3's behavior differs when you
At least for MemoryStore. The
group.__getitem__
eventually tries to do aMemoryStore.get
. The store is closed (by the user) and so it attempts to reopen. For MemoryStore, that doesn't really matter but since we havemode="w"
the dict is cleared and the lookup failed.Steps to reproduce
In zarr-python 2.x, no error is raised:
Additional output
No response
The text was updated successfully, but these errors were encountered: