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$om...@speranza.aioe.org> -- http://mail.python.org/mailman/listinfo/python-list