Ticket #534 (reopened enhancement)
Optimise any(genexpr) and all(genexp)
|Reported by:||scoder||Owned by:||scoder|
In the special case of all() and any(), generator expressions can be implemented as inlined loops. So the following would run without needing to instantiate a generator function:
all(i for i in range(1,20) any(x for L in [[0,0], [0,1]] for x in L)
Note: See TracTickets for help on using tickets.