10000 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

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.register_converter() docstring
  • Loading branch information
Erlend E. Aasland committed Feb 9, 2021
commit 4dd7ec4a7de4e663a776bc7323d87aa997bcdc6d
4 changes: 2 additions & 2 deletions Modules/_sqlite/clinic/module.c.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ pysqlite_register_adapter(PyObject *module, PyObject *const *args, Py_ssize_t na
}

PyDoc_STRVAR(pysqlite_register_converter__doc__,
"register_converter($module, name, converter, /)\n"
"register_converter($module, typename, callable, /)\n"
"--\n"
"\n"
"Registers a converter with pysqlite. Non-standard.");
Expand Down Expand Up @@ -219,4 +219,4 @@ pysqlite_adapt(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
exit:
return return_value;
}
/*[clinic end generated code: output=d87990f941c209fa input=a9049054013a1b77]*/
/*[clinic end generated code: output=de2f7b78d6f52499 input=a9049054013a1b77]*/
6 changes: 3 additions & 3 deletions Modules/_sqlite/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ pysqlite_register_adapter_impl(PyObject *module, PyTypeObject *type,
/*[clinic input]
_sqlite3.register_converter as pysqlite_register_converter

name as orig_name: unicode
converter as callable: object
typename as orig_name: unicode
callable: object
/

Registers a converter with pysqlite. Non-standard.
Expand All @@ -197,7 +197,7 @@ Registers a converter with pysqlite. Non-standard.
static PyObject *
pysqlite_register_converter_impl(PyObject *module, PyObject *orig_name,
PyObject *callable)
/*[clinic end generated code: output=a2f2bfeed7230062 input=e074cf7f4890544f]*/
/*[clinic end generated code: output=a2f2bfeed7230062 input=438c60d0fadae4b1]*/
{
PyObject* name = NULL;
PyObject* retval = NULL;
Expand Down
0