Title: PEP 688: Cannot call super().__buffer__() · Issue #104223 · python/cpython · GitHub
Open Graph Title: PEP 688: Cannot call super().__buffer__() · Issue #104223 · python/cpython
X Title: PEP 688: Cannot call super().__buffer__() · Issue #104223 · python/cpython
Description: The following will currently fail with a RecursionError: class A(bytearray): def __buffer__(self, flags): return super().__buffer__(flags) a = A() mv = memoryview(a) Thanks to @chilaxan for finding this, along with some related problems....
Open Graph Description: The following will currently fail with a RecursionError: class A(bytearray): def __buffer__(self, flags): return super().__buffer__(flags) a = A() mv = memoryview(a) Thanks to @chilaxan for finding...
X Description: The following will currently fail with a RecursionError: class A(bytearray): def __buffer__(self, flags): return super().__buffer__(flags) a = A() mv = memoryview(a) Thanks to @chilaxan for finding...
Opengraph URL: https://github.com/python/cpython/issues/104223
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PEP 688: Cannot call super().__buffer__()","articleBody":"The following will currently fail with a RecursionError:\r\n\r\n```\r\nclass A(bytearray):\r\n def __buffer__(self, flags):\r\n return super().__buffer__(flags)\r\n\r\na = A()\r\nmv = memoryview(a)\r\n```\r\n\r\nThanks to @chilaxan for finding this, along with some related problems. I am working on a fix.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-104227\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/JelleZijlstra","@type":"Person","name":"JelleZijlstra"},"datePublished":"2023-05-06T04:12:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/104223/cpython/issues/104223"}
| 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:dee107a4-d146-e46a-c7d9-bde778ebf992 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9748:111C42:8063E5:AC4D60:69697948 |
| html-safe-nonce | 07355919c7659dd78b7e995b91719c75aa44ea13ccc8a156acc6923efd5e461a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzQ4OjExMUM0Mjo4MDYzRTU6QUM0RDYwOjY5Njk3OTQ4IiwidmlzaXRvcl9pZCI6Ijc2MjE3MjM1NjgxMjE3NTY4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d3275aa3bb8e9e63b3b84eff96fea5a3dcb749716a908e161b5bc3cd92eb529e |
| hovercard-subject-tag | issue:1698427045 |
| 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/python/cpython/104223/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ee4989e5c05b117a44af889c8e8da35321590ad01f027fd6544504614ae3dbab/python/cpython/issues/104223 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ee4989e5c05b117a44af889c8e8da35321590ad01f027fd6544504614ae3dbab/python/cpython/issues/104223 |
| og:image:alt | The following will currently fail with a RecursionError: class A(bytearray): def __buffer__(self, flags): return super().__buffer__(flags) a = A() mv = memoryview(a) Thanks to @chilaxan for finding... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JelleZijlstra |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6f193beb8ff08443adc07685d75302ab8aaf0a135f6e251c3ff3112c8deb881 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| 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 | 212e3e3d3298bf5b313830edfd2399e869f7ea76 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width