On Wed, Mar 16, 2005 at 06:45:23PM +0800, cross wind wrote:
> [...]
> ### When ran, I get the ff messages:
>
> C:/PYTHON23/pythonw.exe -u "Z:/devpy/test/sqlite.pyw"
> Traceback (most recent call last):
> File "Z:/devpy/test/sqlite.pyw", line 1, in ?
> import sqlite
> File "Z:\devpy\test\sqlite.pyw", line 3, in ?
> cx = sqlite.connect('xyz.db')
> AttributeError: 'module' object has no attribute 'connect'Don't name your test script like an existing Python module, in this case sqlite. Because then, your test script imports itself, and not the sqlite module. -- Gerhard
signature.asc
Description: Digital signature

