Modifying Element In For List

Johannes Bauer dfnsonfsduifb at gmx.de
Fri Nov 19 12:17:43 EST 2010


Am 15.11.2010 18:27, schrieb Duncan Booth:

> Comparing directly against True or False is error prone: a value in 
> Python can be false without actually being equal to False.

Well, you can always use "is" instead of "==", which makes a comparison
to True or False perfectly safe.

Regards,
Johannes

-- 
>> Wo hattest Du das Beben nochmal GENAU vorhergesagt?
> Zumindest nicht öffentlich!
Ah, der neueste und bis heute genialste Streich unsere großen
Kosmologen: Die Geheim-Vorhersage.
 - Karl Kaos über Rüdiger Thomas in dsa <hidbv3$om2$1 at speranza.aioe.org>



More information about the Python-list mailing list