[Python-3000] __bool__ in 2.6?

Fred Drake fdrake at acm.org
Mon Oct 29 19:44:55 CET 2007


On Oct 29, 2007, at 2:40 PM, James Thiele wrote:
> So just to clarify:
> 2.6 __nonzero__ first, then __bool__ (if patch submitted)
> 3.x __bool__ first, then __nonzero__

I'd expect switching the order for this to be a bug magnet.  I'd much  
rather see:

2.5 __nonzero__ only
2.6 __bool__ first, then __nonzero__ (if patch submitted)
3.x __bool__ first, then __nonzero__

The fewer variations there are in the algorithm, the better.


   -Fred

-- 
Fred Drake   <fdrake at acm.org>





More information about the Python-3000 mailing list