Thread: python - fe: Don't close the connection on __del__.

python - fe: Don't close the connection on __del__.

From
jwp@pgfoundry.org (James William Pye)
Date:
Log Message:
-----------
Don't close the connection on __del__.

While convenient, this is potentially undesireable. In particular, I imagine
there may be cases where it is desireable to pass around internals of already
established connections; Interchange or the Interchange's pipe. Additionally, it
requires more state checking for appropriate cleanup in certain
situations. For instance, socket errors on connection instantiation may cause
an attribute error to be thrown in __del__.

Modified Files:
--------------
    fe/src:
        tracenull.py (r1.20 -> r1.21)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/fe/src/tracenull.py.diff?r1=1.20&r2=1.21)