Python complaints

Martijn Faassen m.faassen at vet.uu.nl
Thu Nov 25 04:00:31 EST 1999


Aahz Maruch <aahz at netcom.com> wrote:
> In article <81g8po$reo$1 at mach.vub.ac.be>,
> Thomas Hamelryck <thamelry at vub.ac.be> wrote:
>>
>>Block delimitation by indenting. This makes python look like a porsche
>>with a caravan attached :-). As far as I know, most python users even
>>seem to like this for some reason.

> I agree with you and I'm also one of the people who likes it.  Here's
> why: it makes Python code *readable*.  In fact, I wish that Guido would
> disallow

>   if foo : bar()

> and force it to always be

>   if foo :
>     bar()

Agreed. The Zope sources are full of the former and that idiom doesn't help
me read them particularly.

Perhaps 1.6 could introduce this requirement, and some scripts to convert
existing code. The only use I can see for the former is to write nice
obfuscated one liners. :)

Regards,

Martijn
-- 
History of the 20th Century: WW1, WW2, WW3?
No, WWW -- Could we be going in the right direction?




More information about the Python-list mailing list