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

Simplify implementation of is_numlike & is_string_like.#7996

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
NelleV merged 1 commit intomatplotlib:masterfromanntzer:is_numlike_stringlike
Jan 31, 2017

Conversation

anntzer
Copy link
Contributor

See#7795 and#7835 for the motivation. Note that this PR does not actually deprecate either function -- just replaces them by a "saner" implementation (as argued in the issues).

except:
return False
return True
return isinstance(obj, (six.string_types, np.str_))
Copy link
Member

@story645story645Jan 31, 2017
edited
Loading

Choose a reason for hiding this comment

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

please addnp.unicode_

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Ah the joys of Py2... fixed.

@story645story645 changed the titleSimplify implementation of is_numlike & is_string_like.[MRG+1] Simplify implementation of is_numlike & is_string_like.Jan 31, 2017
@NelleV
Copy link
Member

I half expected this patch to break all our tests…
LGTM 👍

@NelleVNelleV merged commit6d3610b intomatplotlib:masterJan 31, 2017
@anntzeranntzer deleted the is_numlike_stringlike branchJanuary 31, 2017 18:10
@QuLogicQuLogic changed the title[MRG+1] Simplify implementation of is_numlike & is_string_like.Simplify implementation of is_numlike & is_string_like.Jan 31, 2017
@QuLogicQuLogic added this to the2.1 (next point release) milestoneJan 31, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@story645story645story645 approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v2.1
Development

Successfully merging this pull request may close these issues.

4 participants
@anntzer@NelleV@story645@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp