Title: sqlite3: Raise ProgrammingError when operating on a closed cursor · Issue #6336 · RustPython/RustPython · GitHub
Open Graph Title: sqlite3: Raise ProgrammingError when operating on a closed cursor · Issue #6336 · RustPython/RustPython
X Title: sqlite3: Raise ProgrammingError when operating on a closed cursor · Issue #6336 · RustPython/RustPython
Description: Currently, the sqlite3 module does not strictly enforce checks when methods are called on a closed cursor. Expected Behavior To match CPython's behavior, calling methods like execute, executemany, executescript, or fetch methods (fetchon...
Open Graph Description: Currently, the sqlite3 module does not strictly enforce checks when methods are called on a closed cursor. Expected Behavior To match CPython's behavior, calling methods like execute, executemany, ...
X Description: Currently, the sqlite3 module does not strictly enforce checks when methods are called on a closed cursor. Expected Behavior To match CPython's behavior, calling methods like execute, executema...
Opengraph URL: https://github.com/RustPython/RustPython/issues/6336
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"sqlite3: Raise ProgrammingError when operating on a closed cursor","articleBody":"Currently, the `sqlite3` module does not strictly enforce checks when methods are called on a closed cursor.\n\n**Expected Behavior**\nTo match CPython's behavior, calling methods like `execute`, `executemany`, `executescript`, or fetch methods (`fetchone`, `fetchall`, etc.) on a cursor after calling `cursor.close()` should raise a `sqlite3.ProgrammingError`.\n\n**Context**\nThis issue is necessary to pass standard library tests that verify cursor state management. We need to ensure that any operation attempted on a closed cursor instance immediately raises the appropriate error.\n\ntest: ClosedCurTests::test_closed","author":{"url":"https://github.com/ever0de","@type":"Person","name":"ever0de"},"datePublished":"2025-12-07T11:30:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/6336/RustPython/issues/6336"}
| 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:c868b1a4-1193-78b8-c4a9-e7d0a3b5c713 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 889C:296AF5:1FEC1D6:2BDC2E1:696AB7ED |
| html-safe-nonce | 97d6c912ac01d443a130a9ab1a8e36d31a53ff8b54716ae2539332014523b8dd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODlDOjI5NkFGNToxRkVDMUQ2OjJCREMyRTE6Njk2QUI3RUQiLCJ2aXNpdG9yX2lkIjoiODgwMDE4OTI2NzQzMDc4Mjk1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6139d4eb7a94558c9b6e097c1ea1b80d42dc6087bfeb2bc96622aacc3bae08ae |
| hovercard-subject-tag | issue:3703392144 |
| 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/6336/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d5593b29199a46fb065289a3ac9d74734860e8d1b35375ad1c8543aeef75dcc1/RustPython/RustPython/issues/6336 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d5593b29199a46fb065289a3ac9d74734860e8d1b35375ad1c8543aeef75dcc1/RustPython/RustPython/issues/6336 |
| og:image:alt | Currently, the sqlite3 module does not strictly enforce checks when methods are called on a closed cursor. Expected Behavior To match CPython's behavior, calling methods like execute, executemany, ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ever0de |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4fa1799b6a53c2d30c950d74230781bef9e7f61138c72c7727e4b83f0743752b |
| 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 | 41f276818bd204c4a30a0281fb3c576298d9474c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width