Title: Deprecate is_string_like · Issue #7835 · matplotlib/matplotlib · GitHub
Open Graph Title: Deprecate is_string_like · Issue #7835 · matplotlib/matplotlib
X Title: Deprecate is_string_like · Issue #7835 · matplotlib/matplotlib
Description: This issue is similar to #7795 ("is_numlike should be deprecated and replaced by the correct isinstance calls"): cbook.is_string_like returns True for 0-dimensional masked arrays of string dtype (but not regular arrays...), but testing f...
Open Graph Description: This issue is similar to #7795 ("is_numlike should be deprecated and replaced by the correct isinstance calls"): cbook.is_string_like returns True for 0-dimensional masked arrays of string dtype (b...
X Description: This issue is similar to #7795 ("is_numlike should be deprecated and replaced by the correct isinstance calls"): cbook.is_string_like returns True for 0-dimensional masked arrays of strin...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/7835
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Deprecate is_string_like","articleBody":"This issue is similar to #7795 (\"is_numlike should be deprecated and replaced by the correct isinstance calls\"): `cbook.is_string_like` returns True for 0-dimensional masked arrays of string dtype (but not regular arrays...), but testing for `is_string_like` is often followed by calling of string methods (`.lower()`, etc.) on the object, or passing the object to, say, `open()` -- neither of which work with masked arrays of string dtype. (check yourself with `git grep -A2 'is_string_like('`)\r\n\r\nIn other words the actual semantics of the function simply do not match how it is used.\r\n\r\nMost of these calls should probably be replaced by `isinstance(obj, six.string_types)` (possibly `isinstance(obj, (six.string_types, six.binary_type))` depending on the case), which is much more explicit.","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2017-01-15T09:10:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/7835/matplotlib/issues/7835"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5e1511a6-6bd3-5c57-f7c6-33556fe9b840 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB7E:2B7671:1790C79:2012AD8:6A546D40 |
| html-safe-nonce | 63160cf77314cb958dd8ebabb26e5b06b741dab8c96fb247656b18f687ae782e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjdFOjJCNzY3MToxNzkwQzc5OjIwMTJBRDg6NkE1NDZENDAiLCJ2aXNpdG9yX2lkIjoiMzM5NTQ0MTk0NzYxOTExNjE2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d3d92acc0302fbac5699f336195b0e6fad96f385159430593c8149045ef066e7 |
| hovercard-subject-tag | issue:200857746 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/7835/issue_layout |
| twitter:image | https://opengraph.githubassets.com/132cff44006aa065ad322e43d7a65cca1f971c6833db4caf9b4d899af98b77e1/matplotlib/matplotlib/issues/7835 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/132cff44006aa065ad322e43d7a65cca1f971c6833db4caf9b4d899af98b77e1/matplotlib/matplotlib/issues/7835 |
| og:image:alt | This issue is similar to #7795 ("is_numlike should be deprecated and replaced by the correct isinstance calls"): cbook.is_string_like returns True for 0-dimensional masked arrays of string dtype (b... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anntzer |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6d28624802c2f7d9500239dd6870ed7031b7353b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width