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
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.
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
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