astropy/astropy — pull request #654 by taldcroft (2013-01-18 14:41:48+00:00)
Title: len(table) fails when self._data is numpy.ma.core.mvoid (and scalar?)

This error appears when trying to get the length of a table that is of type `mvoid`:

```
def __len__(self):
return len(self._data)
TypeError: len() of unsized object

/home/travis/virtualenv/python2.7/src/astropy/astropy/table/table.py:689: TypeError
```
From the astroquery .travis run, in `test_vizier`:
https://travis-ci.org/keflavich/astrodata/jobs/4224400

Using pdb, I examined more closely:
```
ipdb> self._data
(2, 60.27763, -16.110863, 60.27763, -16.110863, '04010663-1606391', 12.175999641418457)
ipdb> self._data.__len__

ipdb> len(self._data)
*** TypeError: len() of unsized object
ipdb> self._data.dtype
dtype([('_q', ' self._data.shape
()
```

So it looks like this is an error because it's a length-zero recordarray?