Boolean tests [was Re: Attack a sacred Python Cow]

Erik Max Francis max at alcyone.com
Wed Jul 30 03:56:57 EDT 2008


Carl Banks wrote:

> I mean in general.  I wouldn't spell it like that.  I would prefer if
> empty(x), with an __empty__ method.  (And support __nonzero__ aka
> __bool__ dropped completely.)

So your argument is purely about style, then.  You just wish it were 
written differently.

-- 
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
  San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
   The actor is not quite a human being -- but then, who is?
    -- George Sanders



More information about the Python-list mailing list