Title: `object.__sizeof__` is not compatible with CPython implementation · Issue #3743 · RustPython/RustPython · GitHub
Open Graph Title: `object.__sizeof__` is not compatible with CPython implementation · Issue #3743 · RustPython/RustPython
X Title: `object.__sizeof__` is not compatible with CPython implementation · Issue #3743 · RustPython/RustPython
Description: When you run the below code, you can see the difference. ⬇️ # RustPython >>>>> object.__sizeof__(12234567898123912312912312312312123123123123123123123213213213213123123211231231231991293912392193949239129492130219493021949421301239492039...
Open Graph Description: When you run the below code, you can see the difference. ⬇️ # RustPython >>>>> object.__sizeof__(1223456789812391231291231231231212312312312312312312321321321321312312321123123123199129391239219394...
X Description: When you run the below code, you can see the difference. ⬇️ # RustPython >>>>> object.__sizeof__(1223456789812391231291231231231212312312312312312312321321321321312312321123123123199...
Opengraph URL: https://github.com/RustPython/RustPython/issues/3743
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`object.__sizeof__` is not compatible with CPython implementation","articleBody":"When you run the below code, you can see the difference. ⬇️ \r\n\r\n```python\r\n# RustPython\r\n\u003e\u003e\u003e\u003e\u003e object.__sizeof__(1223456789812391231291231231231212312312312312312312321321321321312312321123123123199129391239219394923912949213021949302194942130123949203912430392402139210492139123012940219394923942395943856228368385)\r\n32\r\n\r\n# CPython\r\n\u003e\u003e\u003e object.__sizeof__(1223456789812391231291231231231212312312312312312312321321321321312312321123123123199129391239219394923912949213021949302194942130123949203912430392402139210492139123012940219394923942395943856228368385)\r\n116\r\n```\r\n\r\n\r\n## Plan (tracking)\r\n\r\n- [ ] Correct `object.__sizeof__` implementation. (https://github.com/RustPython/RustPython/issues/356, #3421)\r\n- [ ] Make types to set its `ob_size`.\r\n - [ ] `int`\r\n - [ ] `deque`\r\n - TODO","author":{"url":"https://github.com/moreal","@type":"Person","name":"moreal"},"datePublished":"2022-05-22T21:29:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/3743/RustPython/issues/3743"}
| 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:050f9661-37ce-38d6-d377-e31fa5cdf9a3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E66C:30E6E5:5C22E3:7D7E4F:696A7C12 |
| html-safe-nonce | d31d8bb9a0ac0a798dd9a4842706ffa2129178d529428d6cc4df39768209d1d9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjZDOjMwRTZFNTo1QzIyRTM6N0Q3RTRGOjY5NkE3QzEyIiwidmlzaXRvcl9pZCI6IjYwODk3MTc5MDQ2NTY5ODkyMDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a23a3291ef22cae4cb0868dbeb0a15e4f1ab7011833ffbec234994ae2c3f0865 |
| hovercard-subject-tag | issue:1244371850 |
| 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/RustPython/RustPython/3743/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ff78d80c4bc6afaf23a7b23a80a681d0a8f7558442eabd203d2e94ccac4b15b1/RustPython/RustPython/issues/3743 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ff78d80c4bc6afaf23a7b23a80a681d0a8f7558442eabd203d2e94ccac4b15b1/RustPython/RustPython/issues/3743 |
| og:image:alt | When you run the below code, you can see the difference. ⬇️ # RustPython >>>>> object.__sizeof__(1223456789812391231291231231231212312312312312312312321321321321312312321123123123199129391239219394... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | moreal |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5b774e44f85c14a75886edd04ddda4e5a25ddebbb241bcbb590b08a3048730e8 |
| turbo-cache-control | no-preview |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| 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 | cc5f4eee261b3601c1e98e217ceaf28508b9567e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width