[Numpy-discussion] 1.1.1rc1 to be tagged tonight

Pierre GM pgmdevlist at gmail.com
Tue Jul 22 12:52:13 EDT 2008


On Tuesday 22 July 2008 12:48:20 Charles R Harris wrote:
> I fixed it, Pierre. You can't do
>
> (_[1] for _ in ddtype.descr)

> to get a tuple. 

OK, thx for that. AAMOF, lines 243-245 should be:
self._fill_value = np.array(tuple(fillval),
                                        dtype=[(_[0], _[1]) 
                                               for _ in ddtype.descr])

I guess 2.3 choked on the generator instead of the list.

> Actually, I think this should fail in mainline also. 

1.2 ? Can't, not the same approach: as in 1.2, flexible types are supported by 
numpy.ma.core, the get_fill_value trick in numpy.ma.mrecords becomes moot.




More information about the NumPy-Discussion mailing list