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/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:1b998ef0-3547-daac-9d65-d4194eba44c5 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 9E14:F5661:15C3F30:1DE607C:696AA572 |
| html-safe-nonce | 1212f7e5782516eb36dde7a53b8b817e3cd9e0c052e19469039817af14ea10ff |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTE0OkY1NjYxOjE1QzNGMzA6MURFNjA3Qzo2OTZBQTU3MiIsInZpc2l0b3JfaWQiOiI1Mzc2MTA3MzcwNDM5NjgxMzk0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0b24127cd9e972a92ec10da6c9d18d0d4881c1acd2fdd2e81238d7f23b1d319b |
| hovercard-subject-tag | pull_request:3034364156 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/checks |
| 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 | a51f97dbb9326f71c08ecb61577457d543c602124d1a2672871258ef37ac5261 |
| 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 full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4bd0eac606c70914085176ef312ebdcd97a8cdf1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width