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

is_string_like returns True for numpyobject arrays #7725

Closed
Milestone
@fdtomasi

Description

@fdtomasi

Bug report

Bug summary

Functionis_string_like returns True for numpyobject arrays

Code for reproduction

importnumpyasnpfrommatplotlib.cbookimportis_string_likeprint(is_string_like(np.array(map(str, [1,2,3]),dtype=object)))

Actual outcome

True

Expected outcome

False

The problem is that the line 707obj + '' inis_string_like does not generate an exception with such numpy array.

Matplotlib version

  • Matplotlib version: 1.5.3
  • OS: Ubuntu 14.04
  • Python and Matplotlib Installed with Anaconda

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp