[ python-Bugs-1010237 ] Implement __nonzero__ in tracenull.GreenTrunk_Connection

noreply at pgfoundry.org noreply at pgfoundry.org
Tue Jan 15 02:12:17 UTC 2008


Bugs item #1010237, was opened at 2008-01-14 19:12
You can respond by visiting: 
http://pgfoundry.org/tracker/?func=detail&atid=442&aid=1010237&group_id=1000094

Category: FE/Proboscis
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: James Pye (jwp)
Assigned to: James Pye (jwp)
Summary: Implement __nonzero__ in tracenull.GreenTrunk_Connection

Initial Comment:
Add a nonzero method that allows a user to identify a connection that can process a query without causing a known exception.

So self.state not in ('E', 'LOST', None) and not self.closed.

----------------------------------------------------------------------

You can respond by visiting: 
http://pgfoundry.org/tracker/?func=detail&atid=442&aid=1010237&group_id=1000094


More information about the Python-general mailing list