A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2006-March/063233.html below:

[Python-Dev] pysqlite for 2.5?

[Python-Dev] pysqlite for 2.5?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:

- sqlite3_compile will return a SQLite statement.
- sqlite3_finalize will clean up the SQLite statement, and return any 
memory used by it.

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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4