[Numpy-discussion] another view puzzle

Robert Kern robert.kern@gmail....
Wed Jun 3 17:56:58 CDT 2009

On Wed, Jun 3, 2009 at 17:53,  <josef.pktd@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