Re: [pysqlite] sqlite3 - implicit close() when cursor object reclaimed?

[email protected] Sat, 6 Sep 2008 17:01:48 -0500
Newsgroups gmane.comp.python.db.pysqlite.user
Message-ID <[email protected]>
    >> If I call close() here the genexp only yields a single value.
    >> 
    >> def iterkeys(self):
    >>     c = self._conn.cursor()
    >>     c.execute("select key from dict order by key")
    >>     return (e[0] for e in c)

    Gerhard> Is it unclear why it behaves like this?

Not at all.  I just wanted to make sure I was doing the right thing by not
calling close().

Skip