Re: EOF error

Federico Di Gregorio <fog-NGVKUo/i/[email protected]>
Newsgroups gmane.comp.python.db.psycopg.devel
Organization initd.org
Message-ID <[email protected]>
Il giorno mer, 27/02/2008 alle 10.14 +0700, Stuart Bishop ha scritto:
> johnf wrote:
> > " unexpected EOF on client connection" is appearing in my postgres log.
> > In my code I do NOT explicitly call connection.close() because it is my 
> > understanding that it is not required when I release my program - something 
> > about it being part of the DBAPI 2.0.  Is that correct?  
> 
> I get this too. I always assumed it is because destructors in Python are not
> called when the program exits.

Yes. You need to explicitly close connection before the program exits
because Python does not destroy still-live objects.

federico

-- 
Federico Di Gregorio                         http://people.initd.org/fog
Debian GNU/Linux Developer                                [email protected]
INIT.D Developer                                           fog-NGVKUo/i/[email protected]
                        Ahr ahr ahr! E mo' me'e magno tutte! -- Er bieco

_______________________________________________
Psycopg mailing list
Psycopg-IAPFreCvJWPBWskQ1e/[email protected]
http://lists.initd.org/mailman/listinfo/psycopg
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBHxedRvcCgrgZGjesRAun/AJ4paker41C3kILj+njnNbTS7O5TCACeKtRk
GaQQUSjryuxh7lpE5SqK/MY=
=4Weh
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.