On Monday 25 February 2008 5:27 am, Ed Leafe wrote:
> On Feb 25, 2008, at 4:21 AM, Uwe Grauer wrote:
> > From dDataSet.py:
> >     def __del__(self):
> >             if self._cursor is not None:
> >                     self._cursor.close()
> >             if self._connection is not None:
> >                     self._connection.close()
>
>       That's because dDataSet is dealing with the internal SQLite database.
>
> > dConnection doesn't have a __del__ method.
>
>       It shouldn't have to; the dbapi connection object should.
>
> -- Ed Leafe
>
If it helps I used the following from an ipython session and got  a clean 
disconnection.

con=psycopg2.connect("dbname=production user=aklaver host=localhost")
del con

Doing 

con=psycopg2.connect("dbname=production user=aklaver host=localhost")
Quit

resulted in "unexpected EOF on client connection"
-- 
Adrian Klaver
[EMAIL PROTECTED]


_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to