From: "Brian Quinlan" <brian@sweetapp.com>
Replying To: Tim Peters <tim.one@comcast.net>
Date: Sun, 10 Mar 2002 12:46:09 -0800
Subject: RE: [Python-Dev] Boolean transition

[Bunch of arguments combined - and then snipped :-)]
 
For people who want to do integer arithmetic using Booleans, would
calling the int() built-in be too much of a burden? 

Samuele's example would be written as:
 
def count_visible(win_list):
  c = 0 
  for win in win_list:
     c+= int(win.visible)
  return c

That actually seems clearer to me and it fits with Pythons strongly
typed nature.  

Of course there is still the issue of staging any change like this into
the language. 

Cheers,
Brian 


_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev