I could not find a way to re-use a connection object. After executing conn.close() I still have the object in memory so there must be a way to re-use it. What's the best way to do it?
1 Answer
From the connection class documentation:
close()
Close the connection now (rather than whenever del is executed). The connection will be unusable from this point forward; an InterfaceError will be raised if any operation is attempted with the connection
2 Comments
casper
Does it mean that every time I create a new connection the old one stays in memory?