Closed GoogleCodeExporter closed 9 years ago
You can easily support your min/max example by defining an appropriate
container, e.g.::
class MinMaxContainer(object):
def __init__(self, min, max):
self.min = min
self.max = max
def __contains__(self, obj):
return self.min <= obj <= self.max
Original comment by steven.b...@gmail.com
on 28 Mar 2009 at 2:29
Original issue reported on code.google.com by
steven.b...@gmail.com
on 28 Mar 2009 at 2:24