Python Newbie

Mark Lawrence breamoreboy at
Sun Feb 24 21:41:16 CET 2013

On 24/02/2013 19:40, piterrr.dolinski at wrote:
>>> if (some statement):		# short form
>>> rather than
>>> if (some statement == true):	# long form
>> What all those ugly brackets are for?
> Mark,
> Back in the day when C was king, or take many newer long established languages (C#, Java), the use of () has been widespread and mandated by the compilers. I have never heard anyone moan about the requirement to use parentheses. Now come Python in which parens are optional, and all of a sudden they are considered bad and apparently widely abandoned. Do you really not see that code with parens is much more pleasing visually? I could understand someone's reluctance to use parens if they are very new to programming and Pythons is their first language. But my impression here is that most group contributors are long-time programmers and have long used () where they are required. Again, I'm really surprised the community as a whole ignores the programming "heritage" and dumps the parens in a hea
>   rtbeat.
> Peter

Your words "the use of () has been widespread and mandated by the 
compilers" and "have long used () where they are required".  As they are 
neither mandated nor required in Python it just wastes the time of 
anybody reading code as they have to parse something that offers nothing 
except visual noise.  As for being "visually pleasing" that's simply 
laughable.  I want to be able to read code, not hang it in an art gallery.


Mark Lawrence

More information about the Python-list mailing list