if as an operator?

Alex Martelli aleax at aleax.it
Thu Jan 10 09:36:42 EST 2002


"Giorgi Lekishvili" <gleki at gol.ge> wrote in message
news:3C3E25C5.C4A47384 at gol.ge...
    ...
> Even more important is to make comparisons in this vay:
> >>> more_=o.more        # a would-be analog of '>'
> >>>less_=o.less            # a would-be analog of '<'

Look at functions lt, le, eq, ..., in module operator.

> Mayba, I have missed something?

It does look a bit that way, yes.


Alex






More information about the Python-list mailing list