summaryrefslogtreecommitdiff
path: root/numpy/lib/npyio.py
diff options
context:
space:
mode:
authorSimon Gibbons <simongibbons@gmail.com>2018-02-18 16:19:38 +0000
committerSimon Gibbons <simongibbons@gmail.com>2018-02-18 16:19:38 +0000
commit79697ad84fa73b49cca2b6380a74a0bfce4b32bc (patch)
treef49e94250f8d3de2309d4f24d437558905b20978 /numpy/lib/npyio.py
parent4105af42c38539e8bf854c49134fe221d86ec79d (diff)
downloadnumpy-79697ad84fa73b49cca2b6380a74a0bfce4b32bc.tar.gz
BUG: Correctly identify comma seperated dtype strings
When parsing dtype strings, we should only consider them to be comma seperated if there are commas not present in a pair of square brackets. Whilst we had a check for this already in the code there was an off by 1 bug where we failed to consider the first character of the string. This would lead to an infinite recursion when trying to parse strings of the form `[i8,f8]`. Fixes: #10440
Diffstat (limited to 'numpy/lib/npyio.py')
0 files changed, 0 insertions, 0 deletions