Why can't the 'and' and 'or' logical operators be overloaded in Python?

117 views Asked by At

I noticed the 'and' and 'or' logical operators were not defined with a corresponding method in the operator module of the Python standard library. Why can't these operators be overloaded like the others?

Is there official Python documentation that describes this design choice? I could not seem to find any online.

0

There are 0 answers