While working on https://trac.sagemath.org/ticket/31897 Tejasvi (gsoc21) and I stumbled across the following python behaviour:
sage: def f(n): ....: print(len(l)) ....: sage: l = []; l.extend(f(n) for n in range(3)) 0 1 2 sage: l = []; l.extend([f(n) for n in range(3)]) 0 0 0 Is this behaviour we can rely on? I could not find in the python doc, in any case. Martin -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/53c97d28-fc5e-43ee-9371-bf8d2b646554n%40googlegroups.com.