Vikas BN writes:
[...]
> Anyone else encountered this or even have any insights regarding
> this behaviour? I'm using Python2.7.2 on Linux
> if that matters.
ElementTree's `Element` objects behave this way. The "booleanness" is
not conformant to the rest of Python.
I don't know if or w
Hi Navin,
On Tue, Dec 6, 2011 at 9:54 AM, Navin Kabra wrote:
> On Tue, Dec 6, 2011 at 9:49 AM, Vikas BN wrote:
>> I'm working on a script to parse XML files and am using
>
> Any object that has a __len__ defined will evaulate to False in a
> boolean context if __len__ returns 0. (See also __n
On Tue, Dec 6, 2011 at 9:49 AM, Vikas BN wrote:
> I'm working on a script to parse XML files and am using
> cElementTree for the same. However,
> I was under the impression that anything that's a None type or 0 or
> "" would evaluate to False
> and the rest would be True (incl an instance
Hi All,
I'm working on a script to parse XML files and am using
cElementTree for the same. However,
I was under the impression that anything that's a None type or 0 or
"" would evaluate to False
and the rest would be True (incl an instance of an object).
That doesn't seem to work with
Hello everybody...
Than 4 d help...but now i need help...
i have a QListWidget which contains the list of ip address of the other
pc. A QTablewidget which contains 5 columns - ip address(which will take
from QListWidget), compare, similar, pass/fail(it is an Icon)