bpo-20364: Improve sqlite3 placeholder docs (GH-25003)

This commit is contained in:
Erlend Egeberg Aasland 2021-04-14 14:28:55 +02:00 committed by GitHub
parent c1ae741997
commit 3386ca0b36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 48 additions and 48 deletions

View file

@ -209,9 +209,9 @@ library/smtplib,,:port,method must support that as well as a regular host:port
library/socket,,::,'5aef:2b::8'
library/socket,,:can,"return (can_id, can_dlc, data[:can_dlc])"
library/socket,,:len,fds.frombytes(cmsg_data[:len(cmsg_data) - (len(cmsg_data) % fds.itemsize)])
library/sqlite3,,:age,"cur.execute(""select * from people where name_last=:who and age=:age"", {""who"": who, ""age"": age})"
library/sqlite3,,:name,"cur.execute(""select * from lang where lang_name=:name and lang_age=:age"","
library/sqlite3,,:age,"cur.execute(""select * from lang where lang_name=:name and lang_age=:age"","
library/sqlite3,,:memory,
library/sqlite3,,:who,"cur.execute(""select * from people where name_last=:who and age=:age"", {""who"": who, ""age"": age})"
library/sqlite3,,:path,"db = sqlite3.connect('file:path/to/database?mode=ro', uri=True)"
library/ssl,,:My,"Organizational Unit Name (eg, section) []:My Group"
library/ssl,,:My,"Organization Name (eg, company) [Internet Widgits Pty Ltd]:My Organization, Inc."

1 c-api/arg :ref PyArg_ParseTuple(args, "O|O:ref", &object, &callback)
209 library/socket :: '5aef:2b::8'
210 library/socket :can return (can_id, can_dlc, data[:can_dlc])
211 library/socket :len fds.frombytes(cmsg_data[:len(cmsg_data) - (len(cmsg_data) % fds.itemsize)])
212 library/sqlite3 :age :name cur.execute("select * from people where name_last=:who and age=:age", {"who": who, "age": age}) cur.execute("select * from lang where lang_name=:name and lang_age=:age",
213 library/sqlite3 :age cur.execute("select * from lang where lang_name=:name and lang_age=:age",
214 library/sqlite3 :memory
library/sqlite3 :who cur.execute("select * from people where name_last=:who and age=:age", {"who": who, "age": age})
215 library/sqlite3 :path db = sqlite3.connect('file:path/to/database?mode=ro', uri=True)
216 library/ssl :My Organizational Unit Name (eg, section) []:My Group
217 library/ssl :My Organization Name (eg, company) [Internet Widgits Pty Ltd]:My Organization, Inc.