[Image-SIG] passing parameters to functions used by
Image.point?
Nick Bower
bowern@ses.curtin.edu.au
Wed, 09 Aug 2000 11:30:56 GMT
> you can use default arguments to explicitly pass objects from
> your current local namespace to the lambda's namespace:
> self.out =3D self.image.point(lambda i, self=3Dself: min(i, self.l=
ow))
> or:
> self.out =3D self.image.point(lambda i, low=3Dself.low: min(i, low=
))
> see also: http://www.python.org/doc/FAQ.html#4.5
wicked - I always wondered if there was a way to do this with lambdas =3D=
)