Operator Precedence/Boolean Logic

Larry Hudson orgnut at yahoo.com
Wed Jun 22 23:12:36 EDT 2016


On 06/22/2016 12:42 AM, Lawrence D’Oliveiro wrote:
[snip]
> I feel that’s a needlessly complicated rule. It would have been simpler if boolean operators (and conditional expressions like in if-statements and while-statements) only allowed values of boolean types. But that’s one of the few warts in the design of Python...
>

Wart??  I *strongly* disagree.  I find it one of the strengths of Python, it enhances Python's 
expressiveness.  Of course, everyone is entitled to their own opinion...and this is mine.

-- 
      -=- Larry -=-



More information about the Python-list mailing list