Thanks
Il giorno giovedì 20 aprile 2017 15:40:33 UTC+2, Marvix ha scritto:
>
> https://docs.python.org/2/library/functions.html#any
>
> def any(iterable):
> for element in iterable:
> if element:
> return True
> return False
>
> so any() return true if one (or more) of
https://docs.python.org/2/library/functions.html#any
def any(iterable):
for element in iterable:
if element:
return True
return False
so any() return true if one (or more) of the elements is True.
this:
auth.has_membership(role) for role in list_of_roles
try all th
2 matches
Mail list logo