Title: Deprecate and schedule removal of collections.abc.ByteString and typing.ByteString · Issue #91896 · python/cpython · GitHub
Open Graph Title: Deprecate and schedule removal of collections.abc.ByteString and typing.ByteString · Issue #91896 · python/cpython
X Title: Deprecate and schedule removal of collections.abc.ByteString and typing.ByteString · Issue #91896 · python/cpython
Description: The current docstring of collections.abc.ByteString is: """This unifies bytes and bytearray. XXX Should add all their methods. """ Let's do that last thing. This will be useful for typing code that accepts both bytes and bytearray, espec...
Open Graph Description: The current docstring of collections.abc.ByteString is: """This unifies bytes and bytearray. XXX Should add all their methods. """ Let's do that last thing. This will be useful for typing code that...
X Description: The current docstring of collections.abc.ByteString is: """This unifies bytes and bytearray. XXX Should add all their methods. """ Let's do that last thing. This w...
Opengraph URL: https://github.com/python/cpython/issues/91896
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Deprecate and schedule removal of collections.abc.ByteString and typing.ByteString","articleBody":"The current docstring of `collections.abc.ByteString` is:\r\n\r\n```\r\n \"\"\"This unifies bytes and bytearray.\r\n\r\n XXX Should add all their methods.\r\n \"\"\"\r\n```\r\n\r\nLet's do that last thing. This will be useful for typing code that accepts both bytes and bytearray, especially with my proposal in PEP-688 to make bytes no longer acceptable as a shortcut for bytearray in the type system.\r\n\r\ncc @rhettinger for `collections.abc`\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-102096\n* gh-104294\n* gh-104422\n* gh-104424\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/JelleZijlstra","@type":"Person","name":"JelleZijlstra"},"datePublished":"2022-04-25T03:57:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/91896/cpython/issues/91896"}
| 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:1aea547d-98af-ea33-9f37-7e139cf75f58 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 98F6:31315B:954C7F:C8A61E:6969C1CF |
| html-safe-nonce | f26d4dfc0c53766ffd6bfee6365a89b9aae537b3291c4ace1c00169030ca311a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OEY2OjMxMzE1Qjo5NTRDN0Y6QzhBNjFFOjY5NjlDMUNGIiwidmlzaXRvcl9pZCI6IjE4OTEwMzQ2NzAxMDI1OTM5OTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c8019b1956ce3b3ff22672f8940f00a9c6cb5a9d7fbf2f77817137b2f41db0e1 |
| hovercard-subject-tag | issue:1213932492 |
| 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/91896/issue_layout |
| twitter:image | https://opengraph.githubassets.com/db4b3299de9efeacde7dbdfd7079bfd7e6a81dff982681354e70bed3b23920f5/python/cpython/issues/91896 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/db4b3299de9efeacde7dbdfd7079bfd7e6a81dff982681354e70bed3b23920f5/python/cpython/issues/91896 |
| og:image:alt | The current docstring of collections.abc.ByteString is: """This unifies bytes and bytearray. XXX Should add all their methods. """ Let's do that last thing. This will be useful for typing code that... |
| 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 | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| 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 | 83c08c21cdda978090dc44364b71aa5bc6dcea79 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width