Skip to content

Doc: Correct sqlite3 API descriptions and SQL examples - #162193

Merged
methane merged 1 commit into
python:mainfrom
methane:fix-doc-sqlite3
Nov 30, 2026
Merged

methane merged 1 commit into
python:mainfrom
methane:fix-doc-sqlite3

Conversation

@methane

@methane methane commented Nov 18, 2026

Copy link
Copy Markdown
Member
  • Use -- for SQL comments so both examples can be executed as written.
  • Explain that expressions such as MAX(p) have no declared type and use the default type conversions.
  • Correct the window function callbacks whose argument count is set by num_params: step() and inverse().
  • Clarify that backup() uses sleep when retrying a busy or locked database.
  • Remove the claim that an active transaction implies uncommitted changes; BEGIN alone sets in_transaction.
  • Restore the wording that identifies PrepareProtocol itself as the argument to __conform__().
  • Clarify that entering the connection context manager does not open a transaction. With autocommit=False, a new transaction opens after commit or rollback on exit.
  • Clarify that URI mode rw requires an existing database file and raises OperationalError if the file is missing.

@methane methane added the docs Documentation in the Doc dir label Nov 18, 2026
@methane methane added skip issue skip news needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes labels Nov 18, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Nov 18, 2026
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #35973975 | 📁 Comparing de11f11 against main (9427640)

  🔍 Preview build  

1 file changed
± library/sqlite3.html

@methane
methane merged commit 6ffa102 into python:main Nov 30, 2026
43 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Nov 30, 2026
@methane
methane deleted the fix-doc-sqlite3 branch November 30, 2026 09:57
@miss-islington-app

Copy link
Copy Markdown

Thanks @methane for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@bedevere-app

bedevere-app Bot commented Nov 30, 2026

Copy link
Copy Markdown

GH-162860 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Nov 30, 2026
@bedevere-app

bedevere-app Bot commented Nov 30, 2026

Copy link
Copy Markdown

GH-162861 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Nov 30, 2026
methane added a commit that referenced this pull request Nov 30, 2026
(cherry picked from commit 6ffa102)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
methane added a commit that referenced this pull request Nov 30, 2026
(cherry picked from commit 6ffa102)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip issue skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant