Re: [PyQt] QPyNullVariant and bool()

2012-04-25 Thread Phil Thompson
On Wed, 25 Apr 2012 04:26:10 -0400, Deniz Turgut wrote: > On Wed, Apr 25, 2012 at 3:26 AM, Phil Thompson > wrote: >> On Tue, 24 Apr 2012 14:28:02 -0400, Deniz Turgut >> wrote: >>> Would it be logical to add a __nonzero__ method to QPyNullVariant >>> which always returns False? >>> >>> I was goin

Re: [PyQt] QPyNullVariant and bool()

2012-04-25 Thread Deniz Turgut
On Wed, Apr 25, 2012 at 3:26 AM, Phil Thompson wrote: > On Tue, 24 Apr 2012 14:28:02 -0400, Deniz Turgut > wrote: >> Would it be logical to add a __nonzero__ method to QPyNullVariant >> which always returns False? >> >> I was going through a code of mine which broke with a new version of >> PyQt.

Re: [PyQt] QPyNullVariant and bool()

2012-04-25 Thread Phil Thompson
On Tue, 24 Apr 2012 14:28:02 -0400, Deniz Turgut wrote: > Would it be logical to add a __nonzero__ method to QPyNullVariant > which always returns False? > > I was going through a code of mine which broke with a new version of > PyQt. I realized that it was because there is no __nonzero__ method

[PyQt] QPyNullVariant and bool()

2012-04-24 Thread Deniz Turgut
Would it be logical to add a __nonzero__ method to QPyNullVariant which always returns False? I was going through a code of mine which broke with a new version of PyQt. I realized that it was because there is no __nonzero__ method in QPyNullVariant so bool(QPyNullVariant) is always True. Right no