Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
dmonkey13933yI don't get it, why shouldn't it run?
@odietamo Because of the '...' (it's literally in the code).
Voxera71923yWell python is interpreted, is it not?
I guess it does not parse parts that are unreachable.
Have seen the same in other languages. Lines are parsed on a need to basis and this script never reaches the dots.
@Voxera It reaches the dots every iteration of the while-loop, but the three dots are a valid Python expression (the Ellipsis object) and thus no error is raised.
As far as I know, Python gets "compiled" into some sort of byte code before execution (like Java); It's not interpreted as-is like it's the case with Perl.