Title: FUTURE BUG: reconsider how we deep-copy path objects · Issue #29157 · matplotlib/matplotlib · GitHub
Open Graph Title: FUTURE BUG: reconsider how we deep-copy path objects · Issue #29157 · matplotlib/matplotlib
X Title: FUTURE BUG: reconsider how we deep-copy path objects · Issue #29157 · matplotlib/matplotlib
Description: We currently use super() in the __deepcopy__ implementation ofPath matplotlib/lib/matplotlib/path.py Lines 279 to 287 in 183b04f def __deepcopy__(self, memo=None): """ Return a deepcopy of the `Path`. The `Path` will not be readonly, eve...
Open Graph Description: We currently use super() in the __deepcopy__ implementation ofPath matplotlib/lib/matplotlib/path.py Lines 279 to 287 in 183b04f def __deepcopy__(self, memo=None): """ Return a deepcopy of the `Pat...
X Description: We currently use super() in the __deepcopy__ implementation ofPath matplotlib/lib/matplotlib/path.py Lines 279 to 287 in 183b04f def __deepcopy__(self, memo=None): """ Return a deepc...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/29157
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"FUTURE BUG: reconsider how we deep-copy path objects","articleBody":"We currently use `super()` in the `__deepcopy__` implementation of`Path`\r\n\r\nhttps://github.com/matplotlib/matplotlib/blob/183b04fb43f57ffe66da68c729a179e397cd35f6/lib/matplotlib/path.py#L279-L287\r\n\r\nhowever, on the main branch of CPython this causes infinite recursion (https://github.com/python/cpython/issues/126817). Although upstream may (or may not) sort out how to fix this, we should see if there is another way we can do what we need to do and avoid any fallout from changes in CPython.\r\n\r\n\r\n----\r\n\r\nGood first issue because \"make sure deepcopy works on Paths\" is a narrowly limited task, but hard because it will require understanding why we currently use `super()` and enough of the deepcopy/pickle protocol details to fix it.\r\n\r\n\r\nattn @anntzer ","author":{"url":"https://github.com/tacaswell","@type":"Person","name":"tacaswell"},"datePublished":"2024-11-19T20:55:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/29157/matplotlib/issues/29157"}
| 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:2f6d00ef-3710-c794-65e5-4008649759ae |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 99E8:82FD0:A9F58D0:AD54123:6A50B13B |
| html-safe-nonce | aa85ba8a5aadbf508bc4611e110e8ff5b819d601b42f602152a48ffe16b9c974 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OUU4OjgyRkQwOkE5RjU4RDA6QUQ1NDEyMzo2QTUwQjEzQiIsInZpc2l0b3JfaWQiOiI0MTE3Njk4OTA5MjU3NjQyMjk5IiwicmVnaW9uX2VkZ2UiOiJzZWEiLCJyZWdpb25fcmVuZGVyIjoic2VhIn0= |
| visitor-hmac | 779e1d52e8a3aca685c146176a2e92dd711814e06e8ccd457a6dc205c2997b59 |
| hovercard-subject-tag | issue:2673527292 |
| 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/29157/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f78cd8dc371633676841b99b78af4469c17a58344edcafb763e5f25cb025d12c/matplotlib/matplotlib/issues/29157 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f78cd8dc371633676841b99b78af4469c17a58344edcafb763e5f25cb025d12c/matplotlib/matplotlib/issues/29157 |
| og:image:alt | We currently use super() in the __deepcopy__ implementation ofPath matplotlib/lib/matplotlib/path.py Lines 279 to 287 in 183b04f def __deepcopy__(self, memo=None): """ Return a deepcopy of the `Pat... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tacaswell |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| 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 | 7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width