Marco Bizzarri:
> >>> any([x for x in [1, 2, 3]])
>
> I mean, I'm afraid I can't use an expression like that without
> building a list... not at least in python2.3

Note that you don't need a list comp there:

>>> any([x for x in [1, 2, 3]])
True
>>> any([1, 2, 3])
True

so this may suffice:

any(self.findActiveOutgoingRegistrationInstancesPlusSomeOtherThings())

Bye,
bearophile
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to