[Python-Dev] pysqlite for 2.5? (original) (raw)

Gerhard Häring gh at ghaering.de
Fri Mar 31 10:26:11 CEST 2006


Martin v. Löwis wrote:

Terry Reedy wrote:

"Gerhard Häring" <gh at ghaering.de> wrote in message news:442C03D4.1090000 at ghaering.de...

I proposed to link dynamically on Windows, and ship the Windows SQLite3.DLL. This has two advantages:

- Python users can upgrade the SQLite3.DLL by a simple download from in case of emergency +1 and thanks from a Windows user This binary depends on msvcrt.dll. Does anybody know whether this could cause a problem? IOW, is any of the forbidden API used across the DLL boundary (in particular: memory management, stdio, locales)?

AFAIK SQLite does not use stdio or locales. Memory management is normally never done explicitly, but by API calls using opaque pointers to the SQLite structure, for example:

The only explicit memory management function I know is

void sqlite3_free(char *z);

which looks ok, too. And pysqlite doesn't use it, anyway.

-- Gerhard



More information about the Python-Dev mailing list