Weakrefs

Brian Quinlan <brian-DV5Qs//sBLVWk0Htik3J/[email protected]> Thu, 15 Apr 2004 13:14:31 +0200
Newsgroups gmane.comp.python.db.pypgsql.user
Message-ID <[email protected]>
Is there a rational for the cursors only keeping weakrefs to the 
Connection object? I'm moving from MySQL and have a lot of code that is 
  similar to this:

cursor = connect(...).cursor().
cursor.execute(...)

This doesn't work with PyPgSQL because the cursor object doesn't keep 
the connection object alive.

Cheers,
Brian






-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click