diff -r a84eae63b4cd Doc/library/sqlite3.rst --- a/Doc/library/sqlite3.rst Tue Mar 24 10:27:50 2015 +0100 +++ b/Doc/library/sqlite3.rst Tue Mar 24 10:44:12 2015 +0100 @@ -324,8 +324,8 @@ Creates a user-defined function that you can later use from within SQL statements under the function name *name*. *num_params* is the number of - parameters the function accepts, and *func* is a Python callable that is called - as the SQL function. + parameters the function accepts (-1 for any number of arguments), and + *func* is a Python callable that is called as the SQL function. The function can return any of the types supported by SQLite: bytes, str, int, float and None. @@ -340,8 +340,8 @@ Creates a user-defined aggregate function. The aggregate class must implement a ``step`` method, which accepts the number - of parameters *num_params*, and a ``finalize`` method which will return the - final result of the aggregate. + of parameters *num_params* (-1 for any number of arguments), and a + ``finalize`` method which will return the final result of the aggregate. The ``finalize`` method can return any of the types supported by SQLite: bytes, str, int, float and None.