On 05/10/2018 03:02 AM, bartc wrote:
On 10/05/2018 09:09, Marko Rauhamaa wrote:
bartc <b...@freeuk.com>:
When typing in code (in various languages), I have a habit of typing
"..." at places that need to be implemented. For example:
if count:
...
else:
do_something_smart()
break
the idea being that "..." will surely trigger a syntax error if I forget
to address it.
I was mildly amused when Python happily executed such code. "..." is a
valid expression and thus, a valid statement.
I wondered what it meant, so I typed in:
print (...)
and it displayed:
Ellipsis
which wasn't very enlightening.
No, but if you ever have difficulty remembering how to spell "ellipsis",
it's good to know Python comes with a built-in reference.
--
Rob Gaddi, Highland Technology -- www.highlandtechnology.com
Email address domain is currently out of order. See above to fix.
--
https://mail.python.org/mailman/listinfo/python-list