Skip to content

BUG: Correctly identify comma separated dtype strings#10624

Merged
charris merged 1 commit intonumpy:maintenance/1.14.xfrom
charris:backport-10623
Feb 18, 2018
Merged

BUG: Correctly identify comma separated dtype strings#10624
charris merged 1 commit intonumpy:maintenance/1.14.xfrom
charris:backport-10623

Conversation

@charris
Copy link
Member

@charris charris commented Feb 18, 2018

Backport of #10623.

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

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: numpy#10440
@charris charris added this to the 1.14.1 release milestone Feb 18, 2018
@charris charris merged commit 23e3fb5 into numpy:maintenance/1.14.x Feb 18, 2018
@charris charris deleted the backport-10623 branch February 18, 2018 23:10
@eric-wieser eric-wieser changed the title BUG: Correctly identify comma seperated dtype strings BUG: Correctly identify comma separated dtype strings Feb 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants