From 532dc4668d6f64f966461021dd121b800359085b Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sat, 23 Nov 2024 14:49:15 -0800 Subject: [PATCH] Remove note from docs about 3.8 and deterministic, closes #646 --- docs/python-api.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/python-api.rst b/docs/python-api.rst index 7b11c22..c6bf776 100644 --- a/docs/python-api.rst +++ b/docs/python-api.rst @@ -2711,7 +2711,7 @@ By default, the name of the Python function will be used as the name of the SQL print(db.execute('select rev("hello")').fetchone()[0]) -Python 3.8 added the ability to register `deterministic SQLite functions `__, allowing you to indicate that a function will return the exact same result for any given inputs and hence allowing SQLite to apply some performance optimizations. You can mark a function as deterministic using ``deterministic=True``, like this: +If a function will return the exact same result for any given inputs you can register it as a `deterministic SQLite function `__ allowing SQLite to apply some performance optimizations: .. code-block:: python @@ -2719,8 +2719,6 @@ Python 3.8 added the ability to register `deterministic SQLite functions