__All__ Python
__all__ = ['bar', 'baz']
waz = 5
bar = 10
def baz(): return 'baz' ##this will not be exported if you use import *
Xenophobic Xenomorph
__all__ = ['bar', 'baz']
waz = 5
bar = 10
def baz(): return 'baz' ##this will not be exported if you use import *
>>> multiples_of_6 = (not (i % 6) for i in range(1, 10))
>>> any(multiples_of_6)
True
>>> list(multiples_of_6)
[False, False, False]