For review: PEP 308 - If-then-else expression

Fredrik Lundh fredrik at pythonware.com
Sun Feb 9 05:44:12 EST 2003


Christian Tismer wrote:

> Could you do the same statistics over the usage of switch
> statements, semicolons, {} braces, and of course MACROS ?

except for the switch/case statement (which is spelled if/elif in
Python), doesn't Python already have all that?

def MACRO(a, b): #{
    return (a) + (b);
#}

print MACRO(1, 2);

</F>








More information about the Python-list mailing list