Title: Clarification in the `__slots__` documentation · Issue #100315 · python/cpython · GitHub
Open Graph Title: Clarification in the `__slots__` documentation · Issue #100315 · python/cpython
X Title: Clarification in the `__slots__` documentation · Issue #100315 · python/cpython
Description: Documentation https://docs.python.org/3/reference/datamodel.html#notes-on-using-slots One of the bulletpoints: Nonempty slots does not work for classes derived from “variable-length” built-in types such as int, bytes and tuple. Points to...
Open Graph Description: Documentation https://docs.python.org/3/reference/datamodel.html#notes-on-using-slots One of the bulletpoints: Nonempty slots does not work for classes derived from “variable-length” built-in types...
X Description: Documentation https://docs.python.org/3/reference/datamodel.html#notes-on-using-slots One of the bulletpoints: Nonempty slots does not work for classes derived from “variable-length” built-in types...
Opengraph URL: https://github.com/python/cpython/issues/100315
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Clarification in the `__slots__` documentation","articleBody":"# Documentation\r\n\r\nhttps://docs.python.org/3/reference/datamodel.html#notes-on-using-slots\r\n\r\nOne of the bulletpoints:\r\n\r\n\u003e * Nonempty __slots__ does not work for classes derived from “variable-length” built-in types such as [int](https://docs.python.org/3/library/functions.html#int), [bytes](https://docs.python.org/3/library/stdtypes.html#bytes) and [tuple](https://docs.python.org/3/library/stdtypes.html#tuple).\r\n\r\nPoints to clarify:\r\n\r\n* What does \"does not work\" mean?\r\n* Whats the set of \"variable-length\" built-in types? Is `str` one of them?\r\n\r\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-102621\n* gh-102687\n* gh-102688\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/kwsp","@type":"Person","name":"kwsp"},"datePublished":"2022-12-17T11:12:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/100315/cpython/issues/100315"}
| 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:caec010f-cab7-7e47-4625-01d778a77bec |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB68:250E38:1888:1E00:696AF7C0 |
| html-safe-nonce | bedf1e033e32501f416388df37ae049819be7d37d37b13cbf0be4f5f4301f82d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjY4OjI1MEUzODoxODg4OjFFMDA6Njk2QUY3QzAiLCJ2aXNpdG9yX2lkIjoiMjYyMTQ1NzUxMDIwMjgwMDA2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 02fc198239b0085609e6efdb424adcfce6df7a4fba82c4cb85c30b5e2ac42229 |
| hovercard-subject-tag | issue:1501336437 |
| 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/100315/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4a990afd4a4d44d0f6b40f481229d7e319ddc6bebe7d99dd618cc6d14f0d0a18/python/cpython/issues/100315 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4a990afd4a4d44d0f6b40f481229d7e319ddc6bebe7d99dd618cc6d14f0d0a18/python/cpython/issues/100315 |
| og:image:alt | Documentation https://docs.python.org/3/reference/datamodel.html#notes-on-using-slots One of the bulletpoints: Nonempty slots does not work for classes derived from “variable-length” built-in types... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kwsp |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width