Py3K idea: why not drop the colon?

Paul Boddie paul at boddie.org.uk
Thu Nov 9 11:27:37 EST 2006


Michael Hobbs wrote:
>
> I think the colon could be omitted from every type of compound
> statement: 'if', 'for', 'def', 'class', whatever. Am I missing anything?

The FAQ answer. ;-)

http://www.python.org/doc/faq/general/#why-are-colons-required-for-the-if-while-def-class-statements

Paul




More information about the Python-list mailing list