[Numpy-discussion] Making NpzFiles behave more like dictionaries.

Pauli Virtanen pav@iki...
Tue Jun 2 14:06:51 CDT 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?

+0 

I don't see any drawbacks, and the implementation looks good.

-- 
Pauli Virtanen



More information about the Numpy-discussion mailing list