Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: mode kwargs passed as unicode to np.pad raises an exception #7152

Merged
merged 1 commit into from
Jan 31, 2016

Conversation

bertrand-l
Copy link
Contributor

isinstance(mode, str) is False in python2.7 when mode is of unicode
type, and mode is then mistakenly assumed to be a callable which
raises an exception. This should close #7112

isinstance(mode, str) is False in python2.7 when mode is of unicode
type, and mode is then mistakenly assumed to be a callable. See numpy#7112
@njsmith njsmith added the 08 - Backport Used to tag backport PRs label Jan 31, 2016
@njsmith
Copy link
Member

njsmith commented Jan 31, 2016

LGTM, but I'll wait for appveyor (sigh)

@bertrand-l
Copy link
Contributor Author

thanks for the review Nathaniel. Looks like appveyor is finally done :)

@charris charris added this to the 1.11.0 release milestone Jan 31, 2016
charris added a commit that referenced this pull request Jan 31, 2016
BUG: mode kwargs passed as unicode to np.pad raises an exception
@charris charris merged commit 3bc8ed4 into numpy:master Jan 31, 2016
@charris
Copy link
Member

charris commented Jan 31, 2016

Thanks @bertrand-l .

@charris charris removed the 08 - Backport Used to tag backport PRs label Jan 31, 2016
@charris charris removed this from the 1.11.0 release milestone Jan 31, 2016
@bertrand-l bertrand-l deleted the fix/unicode-kwarg-breaks-pad branch February 1, 2016 00:36
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.

from __future__ import unicode_literals breaks numpy.pad
3 participants