-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 01/09/13 14:34, C M wrote: > Do you know how I can do that with Python? For example, I tried this: > > status = cursor.execute("some SQL statement here") print "The status > is: ", status > > But it prints the cursor object: > >> The status is <sqlite3.Cursor object at 0x034313B0>
cursor.execute returns an iterator of the results which is the cursor itself. What you need to provide is the traceback which will show what calls were active. The exception is generally caused by opening a file that isn't a database, but can be caused by other rare sequences of api calls. Roger -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlIj0AIACgkQmOOfHg372QTU5QCfeGcle8r3m8nDs3dDgI7zb6BK qWQAoLWkeKarpubX4S1SzcBxaT5LT1yr =sjZY -----END PGP SIGNATURE----- _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users