An interesting beginner question: why we need colon at all in the python language?

alex23 wuwei23 at gmail.com
Wed Jul 13 08:26:30 CEST 2011


Thomas Jollans <t... at jollybox.de> wrote:
> Coincidentally, Guido wrote this blog post just last week, without which
> I'd be just as much at a loss as you:
>
> http://python-history.blogspot.com/2011/07/karin-dewar-indentation-an...

It's also part of the Python FAQ:

http://docs.python.org/faq/design.html#why-are-colons-required-for-the-if-while-def-class-statements



More information about the Python-list mailing list