[Numpy-discussion] Making NpzFiles behave more like dictionaries.
pav at iki.fi
Tue Jun 2 15:06:51 EDT 2009
Tue, 02 Jun 2009 14:55:02 -0400, David Warde-Farley wrote:
> It's occasionally annoyed me that NpzFiles can't be swapped in
> transparently for an in-memory dictionary since getting at the keys
> requires an attribute access. Below is a patch that implements some more
> of the dictionary interface for the NpzFile class. Any comments as to
> whether this is a good/bad idea, or about the specific implementation?
I don't see any drawbacks, and the implementation looks good.
More information about the NumPy-Discussion