8000 bpo-43094: Update sqlite3 docs to match implementation by erlend-aasland · Pull Request #24489 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content
8000

bpo-43094: Update sqlite3 docs to match implementation #24489

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix sqlite3.adapt() docstring
  • Loading branch information
Erlend E. Aasland committed Feb 9, 2021
commit 85fa271b774962328ee8844f232405a548434d29
5 changes: 3 additions & 2 deletions Modules/_sqlite/clinic/module.c.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ pysqlite_enable_callback_trace(PyObject *module, PyObject *arg)
}

PyDoc_STRVAR(pysqlite_adapt__doc__,
"adapt($module, obj, proto=PrepareProtocolType, alt=<unrepresentable>, /)\n"
"adapt($module, obj, protocol=PrepareProtocolType,\n"
" alternate=<unrepresentable>, /)\n"
"--\n"
"\n"
"Adapt given object to given protocol. Non-standard.");
Expand Down Expand Up @@ -219,4 +220,4 @@ pysqlite_adapt(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
exit:
return return_value;
}
/*[clinic end generated code: output=622f545d589fa736 input=a9049054013a1b77]*/
/*[clinic end generated code: output=35569d190153173b input=a9049054013a1b77]*/
6 changes: 3 additions & 3 deletions Modules/_sqlite/module.c
4211
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ pysqlite_enable_callback_trace_impl(PyObject *module, int enable)
_sqlite3.adapt as pysqlite_adapt

obj: object
proto: object(c_default='(PyObject*)pysqlite_PrepareProtocolType') = PrepareProtocolType
alt: object = NULL
protocol as proto: object(c_default='(PyObject*)pysqlite_PrepareProtocolType') = PrepareProtocolType
alternate as alt: object = NULL
/

Adapt given object to given protocol. Non-standard.
Expand All @@ -251,7 +251,7 @@ Adapt given object to given protocol. Non-standard.
static PyObject *
pysqlite_adapt_impl(PyObject *module, PyObject *obj, PyObject *proto,
PyObject *alt)
/*[clinic end generated code: output=0c3927c5fcd23dd9 input=a58ab77fb5ae22dd]*/
/*[clinic end generated code: output=0c3927c5fcd23dd9 input=e2389971eae0c359]*/
{
return pysqlite_microprotocols_adapt(obj, proto, alt);
}
Expand Down
0