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

noreply at pgfoundry.org noreply at pgfoundry.org
Sun Feb 3 20:55:21 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: Closed
>Resolution: Accepted
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.

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

>Comment By: James Pye (jwp)
Date: 2008-02-03 13:55

Message:
Also added __nonzero__ to greentrunk connection API.

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

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