Skip to content

BUG: Fix string/bytes to complex assignment#16916

Merged
charris merged 1 commit into
numpy:maintenance/1.19.xfrom
charris:backport-16914
Jul 20, 2020
Merged

BUG: Fix string/bytes to complex assignment#16916
charris merged 1 commit into
numpy:maintenance/1.19.xfrom
charris:backport-16914

Conversation

@charris
Copy link
Copy Markdown
Member

@charris charris commented Jul 20, 2020

Backport of #16914.

This was a regression, which happened because of discrepencies
between setting a single item from a string (which was not possible)
and casting from a string to array (which was possible before).
The seconnd code path changed, relying on the former behaviour, which
broke it. This fixes the issue by bringing the second branch in line.

Closes gh-16909

This was a regression, which happened because of discrepencies
between setting a single item from a string (which was not possible)
and casting from a string to array (which was possible before).
The seconnd code path changed, relying on the former behaviour, which
broke it. This fixes the issue by bringing the second branch in line.

Closes numpygh-16909
@charris charris added this to the 1.19.1 release milestone Jul 20, 2020
@charris charris merged commit ec78573 into numpy:maintenance/1.19.x Jul 20, 2020
@charris charris deleted the backport-16914 branch July 21, 2020 02:34
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