Skip to content

BUG: fix einsum issue with unicode input and py2 - #10371

Merged
mhvk merged 1 commit into
numpy:masterfrom
saimn:einsum-py2-unicode
Jan 11, 2018
Merged

mhvk merged 1 commit into
numpy:masterfrom
saimn:einsum-py2-unicode

Conversation

@saimn

@saimn saimn commented Jan 11, 2018

Copy link
Copy Markdown
Contributor

Fix #10369. The issue is the use of isinstance(..., str). There is a np.compat.basestring but I used the way that is used in np.core to re-define basestring for py3.

Comment thread numpy/core/einsumfunc.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just use numpy.compat.basestring

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eric-wieser - Ok, done.

@mhvk

mhvk commented Jan 11, 2018

Copy link
Copy Markdown
Contributor

This looks all OK. Could you squash the two commits to a single one? (Title of first one is OK).

@saimn
saimn force-pushed the einsum-py2-unicode branch from 2dcf8bb to 77ac4a5 Compare January 11, 2018 13:41
@saimn

saimn commented Jan 11, 2018

Copy link
Copy Markdown
Contributor Author

@mhvk - Done.

@mhvk mhvk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems all OK now. Will merge since tests passed before.

@mhvk mhvk added this to the 1.15.0 release milestone Jan 11, 2018
@mhvk
mhvk merged commit 6ff201b into numpy:master Jan 11, 2018
@mhvk

mhvk commented Jan 11, 2018

Copy link
Copy Markdown
Contributor

Thanks, @saimn!

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.

4 participants