[Chicago] Ode to <>

Brian Ray bray at sent.com
Fri Sep 1 00:55:35 CEST 2006


On Aug 31, 2006, at 3:03 PM, Ian Bicking wrote:

> Brian Ray wrote:
>> Instead all together, it would be nice to be able to define our own
>> operators from time to time.
>
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/384122

Ok, this was not exactly what I was talking about. Interesting, none  
the less.

More, it may be handy to say:
	
class ...

   def operator !=(self, rhs):
     if self.something != rhs.something:
       return True
     return False

Or something along the lines of actually associating the operators  
with classes.

--bhr




More information about the Chicago mailing list