Py 3.2: sqlite can't operate on a closed cursor

G

Gnarlodious

I installed Python 3.2, suddenly getting an error on my sqlite pages
(CGI):

ProgrammingError: Cannot operate on a closed cursor

Works normally in interactive mode. Seems to error when the sqlite
statement is in a function. Are sqlite objects now required to be
declared global?

-- Gnarlie
 
G

Gnarlodious

It turns out Python 3.2 now honors closing sqlite connections opened
in another module. Previous versions allowed you to have identically
named sqlite connections open in other modules. Python 3.2 apparently
treats them all as the same connection.

Hopefully some other victim will find this, because it wasn't written
in the documentation
http://docs.python.org/dev/whatsnew/3.2.html#sqlite3

-- Gnarlie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top