Title: Fix sqlite connection reinitialization by ever0de · Pull Request #6288 · RustPython/RustPython · GitHub
Open Graph Title: Fix sqlite connection reinitialization by ever0de · Pull Request #6288 · RustPython/RustPython
X Title: Fix sqlite connection reinitialization by ever0de · Pull Request #6288 · RustPython/RustPython
Description: Fixed #6287 reference https://github.com/python/cpython/blob/49ff8b6cc017bb6e9bdb3bf4918d65f32f7aaed8/Modules/_sqlite/connection.c#L247-L255 https://github.com/python/cpython/blob/49ff8b6cc017bb6e9bdb3bf4918d65f32f7aaed8/Modules/_sqlite/connection.c#L276-L279 https://github.com/python/cpython/blob/49ff8b6cc017bb6e9bdb3bf4918d65f32f7aaed8/Modules/_sqlite/connection.c#L344-L350 Summary by CodeRabbit Refactor Improved concurrency and initialization safety for the built-in SQLite connection: core connection state now uses concurrency-safe primitives with an explicit initialization guard and atomic state operations. Revised lifecycle and reinitialization flow to open/close safely, enforce thread confinement when enabled, reset row/text factories to defaults on reinit, and ensure failed opens leave the connection uninitialized. ✏️ Tip: You can customize this high-level summary in your review settings.
Open Graph Description: Fixed #6287 reference https://github.com/python/cpython/blob/49ff8b6cc017bb6e9bdb3bf4918d65f32f7aaed8/Modules/_sqlite/connection.c#L247-L255 https://github.com/python/cpython/blob/49ff8b6cc017bb6e...
X Description: Fixed #6287 reference https://github.com/python/cpython/blob/49ff8b6cc017bb6e9bdb3bf4918d65f32f7aaed8/Modules/_sqlite/connection.c#L247-L255 https://github.com/python/cpython/blob/49ff8b6cc017bb6e...
Opengraph URL: https://github.com/RustPython/RustPython/pull/6288
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:30ee7191-6709-23d6-7131-3f2df664c36b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E86E:8D11F:CF79B5:11FB54E:696A830C |
| html-safe-nonce | 2af52c9926c9fe84c4362fb6de7288c7615624914aefcafa081cd3b4891b7afc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODZFOjhEMTFGOkNGNzlCNToxMUZCNTRFOjY5NkE4MzBDIiwidmlzaXRvcl9pZCI6IjkwMjQ3MDA4MjczMzM5ODUwMzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a3b2803bb9251544efb1437fd12b462bba3bba50552b5e0d510c75621afceb7e |
| hovercard-subject-tag | pull_request:3034364156 |
| 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/6288/files |
| twitter:image | https://avatars.githubusercontent.com/u/27040963?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/27040963?s=400&v=4 |
| og:image:alt | Fixed #6287 reference https://github.com/python/cpython/blob/49ff8b6cc017bb6e9bdb3bf4918d65f32f7aaed8/Modules/_sqlite/connection.c#L247-L255 https://github.com/python/cpython/blob/49ff8b6cc017bb6e... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 913560fa317c3c5a71e34f9b19253c9f09d02b4b958a86c2a56f4c8541116377 |
| 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 | 5998c30593994bf2589055aef7b22d368a499367 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width