Marko Rauhamaa <ma...@pacujo.net> writes: > The question is, is it bad style—or even an error—to rely on the > execution order of the comprehension loops?
Bad style: IMO, yes, most of the time. I've made use of it at particular times. If it's done in an obscure way it at least deserves a code commment. Error: no, I think the language spec is clear. It's not like the situation of people depending on reference counting to free resources predictably. Use the 'with' statement for that. > Is a Python implementation allowed to parallelize or otherwise reorder > the evaluation loop? No. -- https://mail.python.org/mailman/listinfo/python-list