Article:
  Noisy Python
Subject:   What is given priority?
Date:   2003-01-31 15:47:54
From:   urocyon
Response to: What is given priority?

Boolean operations in descending order of priority are 'or', 'and', then 'not'.


This can be found in Python's online library reference:


http://www.python.org/doc/current/lib/boolean.html


True and False are values. In 2.2 they are simply integer values. Python 2.3 adds the 'bool type This alters their string representation, but they are still essentially integer values. For more information on the bool type coming in 2.3 see:


http://www.python.org/doc/2.3a1/whatsnew/section-bool.html


Finally, one of the best places to ask these questions is the python-tutor list. You can join this mailing list from it's mailman page at:


http://mail.python.org/mailman/listinfo/tutor


Hope that helps!


-Stephen Figgins