Title: os.PathLike is missing __slots__ · Issue #104898 · python/cpython · GitHub
Open Graph Title: os.PathLike is missing __slots__ · Issue #104898 · python/cpython
X Title: os.PathLike is missing __slots__ · Issue #104898 · python/cpython
Description: Per @AlexWaygood: All the ABCs in collections.abc deliberately define __slots__ for this very reason: so that other classes can subclass those ABCs and still be able to use the __slots__ machinery to block the creation of instance dictio...
Open Graph Description: Per @AlexWaygood: All the ABCs in collections.abc deliberately define __slots__ for this very reason: so that other classes can subclass those ABCs and still be able to use the __slots__ machinery ...
X Description: Per @AlexWaygood: All the ABCs in collections.abc deliberately define __slots__ for this very reason: so that other classes can subclass those ABCs and still be able to use the __slots__ machinery ...
Opengraph URL: https://github.com/python/cpython/issues/104898
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"os.PathLike is missing __slots__","articleBody":"[Per](https://github.com/python/cpython/pull/104810#discussion_r1204475255) @AlexWaygood:\r\n\r\n\u003e All the ABCs in `collections.abc` deliberately define `__slots__` for this very reason: so that other classes can subclass those ABCs and still be able to use the `__slots__` machinery to block the creation of instance dictionaries.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-104899\n* gh-105073\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/barneygale","@type":"Person","name":"barneygale"},"datePublished":"2023-05-24T21:48:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/104898/cpython/issues/104898"}
| 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:5271de4c-5d11-a5ed-987b-63f019eaef9c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D278:AA79F:3CEB11:55A804:696A0ADA |
| html-safe-nonce | c98cbbfdc2ac555f43ff300d952c6284a3736871c18e4c1700e4e745d4812968 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjc4OkFBNzlGOjNDRUIxMTo1NUE4MDQ6Njk2QTBBREEiLCJ2aXNpdG9yX2lkIjoiNDg1NDIxMDg1NzYyMjE3ODUyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 302ede2893c9963db5f9cc8fca0c30fc416e99ee2c1c6db49b65a60bd928cb19 |
| hovercard-subject-tag | issue:1724781135 |
| 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/104898/issue_layout |
| twitter:image | https://opengraph.githubassets.com/798fc27e3d8d97a2d7a5f3d30ca2f394d59ccf92608024a9a9832e7a4e326791/python/cpython/issues/104898 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/798fc27e3d8d97a2d7a5f3d30ca2f394d59ccf92608024a9a9832e7a4e326791/python/cpython/issues/104898 |
| og:image:alt | Per @AlexWaygood: All the ABCs in collections.abc deliberately define __slots__ for this very reason: so that other classes can subclass those ABCs and still be able to use the __slots__ machinery ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | barneygale |
| hostname | github.com |
| expected-hostname | github.com |
| None | 699227a00bbb7fe1eec276d2ae1c3a93068bc5ba483bd9dc4b2a27a8f4f2f595 |
| 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 | 7266b2d935baa1c6474b16dd9feaa5ca30607261 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width