Title: top level objects are not deleted before script finalized · Issue #4527 · RustPython/RustPython · GitHub
Open Graph Title: top level objects are not deleted before script finalized · Issue #4527 · RustPython/RustPython
X Title: top level objects are not deleted before script finalized · Issue #4527 · RustPython/RustPython
Description: test code: class X: def __del__(self): print('deleted!') x = X() CPython output: deleted! RustPython output:
Open Graph Description: test code: class X: def __del__(self): print('deleted!') x = X() CPython output: deleted! RustPython output:
X Description: test code: class X: def __del__(self): print('deleted!') x = X() CPython output: deleted! RustPython output:
Opengraph URL: https://github.com/RustPython/RustPython/issues/4527
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"top level objects are not deleted before script finalized","articleBody":"test code:\r\n```python\r\nclass X:\r\n def __del__(self):\r\n print('deleted!')\r\n\r\nx = X()\r\n```\r\n\r\nCPython output:\r\n```\r\ndeleted!\r\n```\r\n\r\nRustPython output:\r\n```\r\n```","author":{"url":"https://github.com/youknowone","@type":"Person","name":"youknowone"},"datePublished":"2023-02-20T11:23:52Z","url":"https://github.com/RustPython/RustPython/issues/4527"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:b51094fd-1b61-3439-c6ec-fff08264c117 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BDC6:3E4AC7:22E9C2B:2F528CC:6B00271A |
| html-safe-nonce | 954aa7b3916fbc7048384302ee145a0293d0bc034361d33b469bacdf74ad0af4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCREM2OjNFNEFDNzoyMkU5QzJCOjJGNTI4Q0M6NkIwMDI3MUEiLCJ2aXNpdG9yX2lkIjoiNDMzNTI2NzUxNzA5OTQxOTQxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7a7420f963fd37954509683a00d237bc730fa3b5c2459450a0ec151d608f52b3 |
| hovercard-subject-tag | issue:1591663363 |
| 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/4527/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0a7434d6ecff5e185c23705cb310cb2ee11747185e046f2fb43f3a3a1207e2cc/RustPython/RustPython/issues/4527 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0a7434d6ecff5e185c23705cb310cb2ee11747185e046f2fb43f3a3a1207e2cc/RustPython/RustPython/issues/4527 |
| og:image:alt | test code: class X: def __del__(self): print('deleted!') x = X() CPython output: deleted! RustPython output: |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | youknowone |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| 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 | 44c658b24abf00491fb7ae5f56d42c9f38cbeab2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width