[Numpy-discussion] another view puzzle

Robert Kern robert.kern at gmail.com
Wed Jun 3 18:56:58 EDT 2009


On Wed, Jun 3, 2009 at 17:53,  <josef.pktd at gmail.com> wrote:
> Is len(z.dtype) > 0   the best way to find out whether an array has a
> structured dtype?

(z.dtype.names is not None) is better.

-- 
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