if as an operator?

Giorgi Lekishvili gleki at gol.ge
Thu Jan 10 20:13:05 EST 2002


Is this a novelty of Py2.1? I still have Py2.0:(
there operator.eq or others, doesn't work:(

Alex Martelli wrote:

> "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