[Python-Dev] Renaming sqlite3 (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Mon Apr 3 09:02:07 CEST 2006
- Previous message: [Python-Dev] TRUNK FREEZE. 2.5a1, 00:00 UTC, Wednesday 5th of April.
- Next message: [Python-Dev] Renaming sqlite3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I just tried creating a pysqlite VS project, and ran into a naming conflict: the Windows DLL is called sqlite3.dll. So if it is on sys.path
import sqlite3
might find the DLL, instead of finding the package. Python then finds that there is no entry point in sqlite3, and raises an ImportError.
I see three options:
- rename sqlite3 again
- link sqlite3 statically into _sqlite3.pyd
- stop treating .DLL files as extension modules
I'm actually leaning towards option 3: what is the rationale for allowing Python extension modules to be named .DLL?
Regards, Martin
- Previous message: [Python-Dev] TRUNK FREEZE. 2.5a1, 00:00 UTC, Wednesday 5th of April.
- Next message: [Python-Dev] Renaming sqlite3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]