"Colin J. Williams" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Alternatively, as someone else suggested, an analogue of the Pascal "with" > could be used: > > def abs(self): > with self: > return math.sqrt(x**2 + y**2 + z**2) How does your suggested "with" statement know to transform x into self.x but not transform math.sqrt into self.math.sqrt? -- http://mail.python.org/mailman/listinfo/python-list