hashval and Numpy

Uwe Schmitt uwe at rocksport.de
Tue Oct 16 11:48:27 EDT 2001


Hi,

I'd like to use a dictionary with NumericalPython-arrays as keys.
This does not work, because NumPy does not provide hashvals for
arrays. But this could be easyly done, as tupels are hashable.
So: how can I extend NumPy, so that arrays get a hashval ???

Greetings, Uwe.

-- 
Uwe.Schmitt at num.uni-sb.de      Universität des Saarlandes
phone: +49 (0)681/302-2468     Geb. 36.1, Zi. 4.17, PF 151150
                               D-66041  Saarbrücken
http://www.rocksport.de        http://www.rocksport.de/first_ride.mp3




More information about the Python-list mailing list