thouis / numpy-trac-migration

numpy Trac to github issues migration
2 stars 3 forks source link

Creating 0-dim arrays from an empty scalar fails (migrated from Trac #353) #960

Closed thouis closed 12 years ago

thouis commented 12 years ago

Original ticket http://projects.scipy.org/numpy/ticket/353 Reported 2006-10-18 by atmention:FrancescAlted, assigned to unknown.

Hi,

I don't know if this is related with ticket:331, but I think the next should be a bug:

In [71]:"" == numpy.string_("")
Out[71]:True
In [72]:numpy.array("")
Out[72]:
array('',
      dtype='|S1')
# so far so good, but...
In [73]:numpy.array(numpy.string_(""))
---------------------------------------------------------------------------
exceptions.ValueError                                Traceback (most recent call last)

/home/faltet/<ipython console>

ValueError: Empty data-type
thouis commented 12 years ago

Comment in Trac by atmention:teoliphant, 2006-10-18

Fixed in r3359