Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

BUG: Correctly identify comma separated dtype strings#10624

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

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

Conversation

@charris
Copy link
Member

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 tobe comma seperated if there are commas not present in apair of square brackets.Whilst we had a check for this already in the code there wasan off by 1 bug where we failed to consider the first characterof the string. This would lead to an infinite recursion whentrying to parse strings of the form `[i8,f8]`.Fixes:numpy#10440
@charrischarris added this to the1.14.1 release milestoneFeb 18, 2018
@charrischarris merged commit23e3fb5 intonumpy:maintenance/1.14.xFeb 18, 2018
@charrischarris deleted the backport-10623 branchFebruary 18, 2018 23:10
@eric-wiesereric-wieser changed the titleBUG: Correctly identify comma seperated dtype stringsBUG: Correctly identify comma separated dtype stringsFeb 27, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@charris@simongibbons

[8]ページ先頭

©2009-2025 Movatter.jp