Title: Add import_ensure_initialized to import_module_level by youknowone · Pull Request #7076 · RustPython/RustPython · GitHub
Open Graph Title: Add import_ensure_initialized to import_module_level by youknowone · Pull Request #7076 · RustPython/RustPython
X Title: Add import_ensure_initialized to import_module_level by youknowone · Pull Request #7076 · RustPython/RustPython
Description: Wait for module initialization to complete when a module is already in sys.modules but still being initialized by another thread. Check spec._initializing and call _lock_unlock_module to block until the import finishes. Summary by CodeRabbit Bug Fixes Improved module import synchronization to properly handle concurrent and nested imports, ensuring modules are fully initialized before use and preventing edge case issues.
Open Graph Description: Wait for module initialization to complete when a module is already in sys.modules but still being initialized by another thread. Check spec._initializing and call _lock_unlock_module to block unti...
X Description: Wait for module initialization to complete when a module is already in sys.modules but still being initialized by another thread. Check spec._initializing and call _lock_unlock_module to block unti...
Opengraph URL: https://github.com/RustPython/RustPython/pull/7076
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:8d529bf5-b1a6-ce70-4fd8-dab4707dbf7e |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C7DE:26C182:539A5E6:6E108D8:6A5D8F29 |
| html-safe-nonce | b6ab532ab0e40e8000fa47f8d441a213c19f3d080cf0a26196c4f70519c2adcc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDN0RFOjI2QzE4Mjo1MzlBNUU2OjZFMTA4RDg6NkE1RDhGMjkiLCJ2aXNpdG9yX2lkIjoiMjcyMjQ0Nzg4MDg2MzE5MDgyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3e0550f3b675aec98ba273c6d9020dd181a854922b509a9a8e267dd3b9be10d4 |
| hovercard-subject-tag | pull_request:3269566193 |
| 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/7076/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 | Wait for module initialization to complete when a module is already in sys.modules but still being initialized by another thread. Check spec._initializing and call _lock_unlock_module to block unti... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width