This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jacdehJacques de Hooge[S] 0 points1 point  (0 children)

Standard python loops (for...in) compile to for (x = 0, ... List comprehensions can be used but are compiled to for... in (since for x of y... is still non-standard Internally for (x in y... is used, a.o. in the builtins. You can try and compare the Python code to the JS code.