2015-07-17 14:01 GMT+01:00 Davide Muzzarelli <d.muzzare...@dav-muz.net>:

> Il motivo รจ che il primo if controlla anche il tipo mentre gli altri due
> no.
>

In realta' il primo e' anche il piu' broken. Dalla PEP8:


   -

   Don't compare boolean values to True or False using == .

   Yes:   if greeting:
   No:    if greeting == True:
   Worse: if greeting is True:









-- 
.
..: -enrico-
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a