[Tutor] please help with sqlite replace function

John Fouhy john at fouhy.net
Thu Nov 6 22:54:15 CET 2008

2008/11/7 aivars <aivars868 at gmail.com>:
> I use python (activestate), WinXP, sqlite version 3.6.2

Hi Aivars,

I believe python has its own built-in sqlite, rather than using the
version you installed independently.  So it is possible that the
python version of sqlite is older than 3.6.2 and does not yet have the
replace() function.

(run 'import sqlite3' and then examine 'sqlite3.sqlite_version' to see
what version you are using)

You could try replacing sqlite3.dll in your python25\dlls directory
with the DLL from your sqlite installation (make a backup first :-) ).
 Alternatively, you could define the replace() function in python and
then add it to your database: see



More information about the Tutor mailing list