On Jun 21, 1:37 pm, John Machin <[EMAIL PROTECTED]> wrote:
>
> Look at the operator module. In your above example:
>
> return {
>    '>': operator.gt,
>    '=': operator.eq,
>    '<': operator.lt,
>    }[variable]
>
> Cheers,
> John

Thanks a lot John
Dominique
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to