[Numpy-discussion] array of tuples

Robert Kern robert.kern at gmail.com
Tue Jun 6 16:37:10 CDT 2006


Christopher Barker wrote:
> Stefan van der Walt wrote:
> 
>>In [19]: z = N.empty(len(x),dtype='O')
> 
> Which brings up:
> 
> What is the "preferred" way to refer to types? String typecode or object?

Object! The string typecodes are for backwards compatibility only.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco





More information about the Numpy-discussion mailing list