Python from Wise Guy's Viewpoint

Duncan Booth duncan at NOSPAMrcp.co.uk
Mon Oct 20 10:01:59 EDT 2003


mike420 at ziplip.com wrote in
news:LQLWMDEMOIKDAOELJUAGDQCCMOMGBTKIOLJQMEKD at ziplip.com: 

> In each of these cases, my version uses as many or fewer syntactic
> elements (commas and parens) than yours. The problem with Python is
> that it also lacks uniformity here (think "print" and "del").

I fail to see the lack of uniformity. "print" and "del" are statements, and 
like other statement (think "if", "for") they don't require parentheses. 
Function calls do require parentheses because that is the way most people 
who use procedural languages are accustomed to seeing function calls.

-- 
Duncan Booth                                             duncan at rcp.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?




More information about the Python-list mailing list