Title: Clear frame locals and stack on generator close + Add dir_fd support for rmdir, remove/unlink, scandir by youknowone · Pull Request #7222 · RustPython/RustPython · GitHub
Open Graph Title: Clear frame locals and stack on generator close + Add dir_fd support for rmdir, remove/unlink, scandir by youknowone · Pull Request #7222 · RustPython/RustPython
X Title: Clear frame locals and stack on generator close + Add dir_fd support for rmdir, remove/unlink, scandir by youknowone · Pull Request #7222 · RustPython/RustPython
Description: Summary by CodeRabbit New Features scandir, rmdir, and unlink now support directory file-descriptor usage and offer an fd-backed scandir iterator. DirEntry exposes file-type and originating-dir-fd info and improved stat behavior for fd-based operations. Bug Fixes Generators/coroutines now free frame locals, cell references, and evaluation stack when closed to reduce retained references. Refactor Internal frame cell storage and access reorganized with clearer APIs and lifecycle management.
Open Graph Description: Summary by CodeRabbit New Features scandir, rmdir, and unlink now support directory file-descriptor usage and offer an fd-backed scandir iterator. DirEntry exposes file-type and originating-dir-...
X Description: Summary by CodeRabbit New Features scandir, rmdir, and unlink now support directory file-descriptor usage and offer an fd-backed scandir iterator. DirEntry exposes file-type and originating-dir-...
Opengraph URL: https://github.com/RustPython/RustPython/pull/7222
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4c47cafc-a61d-933c-402a-82f0a39b7b83 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C2B8:FD1F4:1B5E55:26C7BE:6A61C286 |
| html-safe-nonce | df9dd6d526a44e331286e77132045faa316bed4db1b9a3c3622407b271f6e0cd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkI4OkZEMUY0OjFCNUU1NToyNkM3QkU6NkE2MUMyODYiLCJ2aXNpdG9yX2lkIjoiNDEyODcwNDU0ODIwNjM5NjAzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b889ca47c3abe2e44345829c6a67e2e9f381dacb230a01d09e50dfd09fd707d6 |
| hovercard-subject-tag | pull_request:3324582891 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/RustPython/RustPython/pull/7222/files |
| twitter:image | https://avatars.githubusercontent.com/u/69878?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/69878?s=400&v=4 |
| og:image:alt | Summary by CodeRabbit New Features scandir, rmdir, and unlink now support directory file-descriptor usage and offer an fd-backed scandir iterator. DirEntry exposes file-type and originating-dir-... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6f4633bcf01c1ad14b73fd07dd39ac31d61f3d3c2578ee08ec1792b7b351eeb9 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ac296ae7f21856f1f92adbad22f870b6fbb4b907 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width