Proposed new syntax
Paul Rubin
no.email at nospam.invalid
Fri Aug 18 03:36:22 EDT 2017
Marko Rauhamaa <marko at 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.
More information about the Python-list
mailing list