Re: EOF error

"James Henstridge" <[email protected]>
Newsgroups gmane.comp.python.db.psycopg.devel
Message-ID <[email protected]>
On 28/02/2008, johnf <jfabiani-rLSQ/[email protected]> wrote:
> On Wednesday 27 February 2008 02:42:25 pm Federico Di Gregorio wrote:
>  > Yes. You need to explicitly close connection before the program exits
>  > because Python does not destroy still-live objects
>
>
> Does the connection object have a __del__?

If you suspect a problem with the cycle GC, that is certainly
possible.  The connection class does not implement the tp_traverse or
tp_clear slots, and does hold references to a number of Python
objects.

If the connection does form part of a cycle, then the cycle GC won't see it.

James.
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.