numpy/numpy — pull request #376 by cgohlke (2012-08-06 23:17:50+00:00)
Title: Allow long numbers in numpy.rec.array formats string

On win-amd64, some [pyfits](http://pypi.python.org/pypi/pyfits) 3.0.9 tests fail because the `np.rec.array` `formats` argument may contain Python long numbers. A reduced example is:

```
>>> import numpy as np
>>> np.rec.array(None, shape=1L, formats='(1L, 1L)i4')
Traceback (most recent call last):
File "", line 1, in
File "X:\Python27-x64\lib\site-packages\numpy\core\records.py", line 749, in array
aligned, byteorder)._descr
File "X:\Python27-x64\lib\site-packages\numpy\core\records.py", line 143, in __init__
self._parseFormats(formats, aligned)
File "X:\Python27-x64\lib\site-packages\numpy\core\records.py", line 157, in _parseFormats
dtype = sb.dtype(formats, aligned)
File "X:\Python27-x64\lib\site-packages\numpy\core\_internal.py", line 234, in _commastring
newitem = (dtype, eval(repeats))
File "", line 1
(1
^
SyntaxError: unexpected EOF while parsing
```

Tested with numpy 1.6.2 on win-amd64-py2.7 and win32-py2.7. Will work on a unit test later...