Title: Special conversions of xrange() · Issue #10556 · matplotlib/matplotlib · GitHub
Open Graph Title: Special conversions of xrange() · Issue #10556 · matplotlib/matplotlib
X Title: Special conversions of xrange() · Issue #10556 · matplotlib/matplotlib
Description: Documenting these requests so they do not get lost... #10525 attempted to convert all calls to six.moves.xrange() into calls to range() as part of the removal of Python 2 support. There were several suggestions to make alternative conver...
Open Graph Description: Documenting these requests so they do not get lost... #10525 attempted to convert all calls to six.moves.xrange() into calls to range() as part of the removal of Python 2 support. There were severa...
X Description: Documenting these requests so they do not get lost... #10525 attempted to convert all calls to six.moves.xrange() into calls to range() as part of the removal of Python 2 support. There were severa...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/10556
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Special conversions of xrange()","articleBody":"Documenting these requests so they do not get lost...\r\n\r\n#10525 attempted to convert all calls to __six.moves.xrange()__ into calls to __range()__ as part of the removal of Python 2 support. There were [several suggestions](https://github.com/matplotlib/matplotlib/pull/10525#pullrequestreview-97434039) to make alternative conversions:\r\n\r\n- [ ] These functions should just be deleted as they have been deprecated since 2.1: [one](https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/cbook/__init__.py#L950) and [two](https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/cbook/__init__.py#L11770)\r\n- [ ] Probably better written using [__np.stack()__](https://docs.scipy.org/doc/numpy/reference/generated/numpy.stack.html) or a variant of it: [one](https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/colorbar.py#L564-L566) and [two](https://github.com/matplotlib/matplotlib/blob/master/lib/mpl_toolkits/axes_grid1/colorbar.py#L532-L534)\r\n- [ ] Probably should be [__itertools.count()__](https://docs.python.org/3/library/itertools.html#itertools.count): [one](https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/sphinxext/plot_directive.py#L600)\r\n\r\nAfter these changes are made, the lines containing __from six.moves import xrange__ should also be removed.","author":{"url":"https://github.com/cclauss","@type":"Person","name":"cclauss"},"datePublished":"2018-02-21T15:22:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/10556/matplotlib/issues/10556"}
| 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:49641469-c5e9-4386-769d-35999e2beafc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9608:153FD3:1089379:16461C7:6A53360E |
| html-safe-nonce | 4c9397090f2d1e086a68f6edc63331951cb47c7f025ebf86ba9af9a077d7b3f1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjA4OjE1M0ZEMzoxMDg5Mzc5OjE2NDYxQzc6NkE1MzM2MEUiLCJ2aXNpdG9yX2lkIjoiMzIyMjIyODgzMzk3ODc1ODY3MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 087362d783c3cf686613d535a3e0e7296fa8fc2ebd7cdc7ef4b4f924c7c60ea9 |
| hovercard-subject-tag | issue:299012000 |
| 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/10556/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f886d06ea4fff58e6201fde128dc02652cbf9fe391ef0cb12a370e846f89f500/matplotlib/matplotlib/issues/10556 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f886d06ea4fff58e6201fde128dc02652cbf9fe391ef0cb12a370e846f89f500/matplotlib/matplotlib/issues/10556 |
| og:image:alt | Documenting these requests so they do not get lost... #10525 attempted to convert all calls to six.moves.xrange() into calls to range() as part of the removal of Python 2 support. There were severa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cclauss |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width