Attack a sacred Python Cow

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Sat Jul 26 09:34:43 CEST 2008


Carl Banks a écrit :
> On Jul 24, 4:11 am, Jordan <jordanrastr... at gmail.com> wrote:
>> Of course not.
>>
>> I just think Explicit is better than Implicit is taken seriously by a
>> large segment the Python community as a guiding principle,
> 
> Yeah, try telling that to the people who advise writing "if x" instead
> of "if x==0", or "if s" instead of "if len(s)==0".

Anyone suggesting that 'if x' should be replaced by 'if x==0' should be 
shot down before he even get a chance to write any code. But perhaps you 
meant replacing 'if x' by 'if x != 0' and 'if s' by 'if len(s) != 0' ?-)




More information about the Python-list mailing list