[New-bugs-announce] [issue43094] sqlite3.create_function takes parameter named narg, not num_params
Nicholas Chammas
report at bugs.python.org
Mon Feb 1 15:10:10 EST 2021
New submission from Nicholas Chammas <nicholas.chammas at gmail.com>:
The doc for sqlite3.create_function shows the signature as follows:
https://docs.python.org/3.9/library/sqlite3.html#sqlite3.Connection.create_function
```
create_function(name, num_params, func, *, deterministic=False)
```
But it appears that the parameter name is `narg`, not `num_params`. Trying `num_params` yields:
```
TypeError: function missing required argument 'narg' (pos 2)
```
----------
assignee: docs at python
components: Documentation
messages: 386100
nosy: docs at python, nchammas
priority: normal
severity: normal
status: open
title: sqlite3.create_function takes parameter named narg, not num_params
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43094>
_______________________________________
More information about the New-bugs-announce
mailing list