[Numpy-discussion] comparing string array with None raises ValueError
Todd Miller
jmiller at stsci.edu
Thu Jun 24 10:32:03 EDT 2004
On Thu, 2004-06-24 at 13:06, Sebastian Haase wrote:
> Hi,
> I'm not sure if this is fixed already in CVS but here it goes:
> I'm working with record arrays, and trying to access a field with
> type '10a80' - that is, an array of 10 80 char 'strings' :
> >>> q.Mrc.hdr = q.Mrc.hdrArray[0].field
> >>> q.Mrc.hdr('title') != None
Shouldn't this be:
q.Mrc.hdr('title') != ""
Regards,
Todd
More information about the NumPy-Discussion
mailing list