Override 'and' and 'or'
Steven D'Aprano
steve at REMOVE-THIS-cybersource.com.au
Sun Oct 7 10:47:57 EDT 2007
On Sun, 07 Oct 2007 16:24:35 +0200, Wildemar Wildenburger wrote:
> Wildemar Wildenburger wrote:
>> [whate everyone else wrote :(]
>>
>> /W
>
> Dangit! 4th of 4.
> Gotta type quicker.
That's okay, in two weeks time there will be 139 messages in this thread,
it will have devolved into an argument about whether Python's truth-
testing semantics are better or worse than whatever Java/Lisp/Haskell/
Ruby does, and *then* somebody will respond to the Original Poster with
"customize the __and__ and __or__ methods of your class".
Happens every time.
--
Steven.
More information about the Python-list
mailing list