Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Voxera113888yWell 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. -
Voxera113888y@LevitatingLion ok :)
I did not know about that, never really used python except for some experimentation.
Related Rants
The great thing about Python is that this actually runs
undefined
python
ellipsis