Title: Clarify sqlite3 documentation of PEP 249 compliance for commit modes · Issue #99828 · python/cpython · GitHub
Open Graph Title: Clarify sqlite3 documentation of PEP 249 compliance for commit modes · Issue #99828 · python/cpython
X Title: Clarify sqlite3 documentation of PEP 249 compliance for commit modes · Issue #99828 · python/cpython
Description: Documentation The sqlite3 documentation for the new Connection.autocommit attribute introduced in PR #93823 states: .. attribute:: autocommit This attribute controls :pep:`249`-compliant transaction behaviour. :attr:`!autocommit` has thr...
Open Graph Description: Documentation The sqlite3 documentation for the new Connection.autocommit attribute introduced in PR #93823 states: .. attribute:: autocommit This attribute controls :pep:`249`-compliant transactio...
X Description: Documentation The sqlite3 documentation for the new Connection.autocommit attribute introduced in PR #93823 states: .. attribute:: autocommit This attribute controls :pep:`249`-compliant transactio...
Opengraph URL: https://github.com/python/cpython/issues/99828
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Clarify sqlite3 documentation of PEP 249 compliance for commit modes","articleBody":"# Documentation\r\n\r\nThe `sqlite3` documentation for the new `Connection.autocommit` attribute introduced in PR #93823 states:\r\n\r\n```\r\n .. attribute:: autocommit\r\n\r\n This attribute controls :pep:`249`-compliant transaction behaviour.\r\n :attr:`!autocommit` has three allowed values:\r\n\r\n * ``False``: Select :pep:`249`-compliant transaction behaviour,\r\n implying that :mod:`!sqlite3` ensures a transaction is always open.\r\n\r\n This is the recommended value of :attr:`!autocommit`.\r\n\r\n * ``True``: Use SQLite's `autocommit mode`_.\r\n :meth:`commit` and :meth:`rollback` have no effect in this mode.\r\n\r\n * :data:`LEGACY_TRANSACTION_CONTROL`:\r\n Pre-Python 3.12 (non-:pep:`249`-compliant) transaction control.\r\n See :attr:`isolation_level` for more details.\r\n```\r\n\r\nThe sentence ‘This attribute controls :pep:`249`-compliant transaction behaviour.’ is misleading as only the new manual commit mode (`autocommit=False`) is PEP-249-compliant, since PEP 249 specifies only the manual commit mode.\r\n\r\nLikewise, the sentence ‘Pre-Python 3.12 (non-:pep:`249`-compliant) transaction control.’ is misleading as only the legacy manual commit mode (`isolation_level='DEFERRED'`, `isolation_level='EXCLUSIVE'`, or `isolation_level='IMMEDIATE'`) is non-PEP-249-compliant, since PEP 249 specifies only the manual commit mode.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-99829\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/geryogam","@type":"Person","name":"geryogam"},"datePublished":"2022-11-27T22:31:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/99828/cpython/issues/99828"}
| 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:dfa8bcb7-9fee-4a08-ad6c-2da312752714 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB9A:181900:F7A8F4:152DA60:6969F206 |
| html-safe-nonce | 4284b43b751a661c1b09119bcd2da1e0cf65964a14e595cdbaba410a076f18c7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjlBOjE4MTkwMDpGN0E4RjQ6MTUyREE2MDo2OTY5RjIwNiIsInZpc2l0b3JfaWQiOiI0MDM5NzY5Nzc3MDgzMzgwMjMwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8ee51373951f43f4e73084c000fb420094f52343f0f536a54f36652316cbab43 |
| hovercard-subject-tag | issue:1465598715 |
| 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/python/cpython/99828/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0809697d77154d91b99d842865b3b60f26744e2332bb2a9add448307cfa80de0/python/cpython/issues/99828 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0809697d77154d91b99d842865b3b60f26744e2332bb2a9add448307cfa80de0/python/cpython/issues/99828 |
| og:image:alt | Documentation The sqlite3 documentation for the new Connection.autocommit attribute introduced in PR #93823 states: .. attribute:: autocommit This attribute controls :pep:`249`-compliant transactio... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | geryogam |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| 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 | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width