<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/2168" rel="nofollow">http://projects.scipy.org/numpy/ticket/2168</a> on 2012-06-16 by trac user kobejohn, assigned to unknown.</em></p>
<p dir="auto">I found this due to someone having a problem not being able to load large integers with recfromcsv. After playing with it, I think it is simply ignoring all the dtype information provided.</p>
<p dir="auto">[https://github.com/numpy/numpy/blob/master/numpy/lib/npyio.py#L1859 Line 1859 in npyio.py, part of recfromcsv()] tries to either bring in the dtypes passed or set None. However, it actually brings in a kwarg that I couldn't find anywhere else called 'update' which looks suspiciously like a copied mistype from earlier in the line.</p>
<p dir="auto">If I change 'update' --&gt; 'dtype', then the types get picked up as expected.</p>
<p dir="auto">I found this in the github repo (although I may have been looking at the wrong branch) as well as 1.6.2</p>
<p dir="auto">I found this due to <a href="http://stackoverflow.com/questions/11064908/getting-numpy-overflow-despite-declaring-dtype-int64/11065583#comment14481167_11065583" rel="nofollow">someone's problem loading large integers with recfromcsv</a>. After playing with it, I think it is simply ignoring all the dtype information provided.</p>
<p dir="auto"><a href="https://github.com/numpy/numpy/blob/master/numpy/lib/npyio.py#L1859">Line 1859 in npyio.py, part of recfromcsv()</a> tries to either bring in the dtypes passed or set None. However, it actually brings in a kwarg that I couldn't find anywhere else called 'update' which looks suspiciously like a copied mistype from earlier in the line. If I change 'update' --&gt; 'dtype', then the types get picked up as expected. More explicitly, in recfromcsv, change:</p>
<p dir="auto"><code class="notranslate">kwargs.update(dtype=kwargs.get('update', None),</code></p>
<p dir="auto">to this:</p>
<p dir="auto"><code class="notranslate">kwargs.update(dtype=kwargs.get('dtype', None),</code></p>
<p dir="auto">I found this in the github repo (although I may have been looking at the wrong branch) as well as the 1.6.2 release that I am using.</p>
<p dir="auto"><strong>_(apologies for double posting this. I <a href="http://projects.scipy.org/numpy/ticket/2168" rel="nofollow">posted in trac</a> first and then heard that maybe that won't be looked at. I haven't found a way to delete or close that ticket.)</strong>_</p>