On 18 juil, 12:26, Peter Otten <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > I think something like
> >>>> id(myobject) in (id(element) for element in mylist)
> > would also work, also it's not so readable, and maybe not so fast
> > (?)...
>
> > An "is in" operator would be nice...
>
> And rarely used. Probably even less than the (also missing)
>
> < in, | in, you-name-it
>
> operators...
>

Maybe, but imho
>>> myobject is in mylist
is highly readable, when
>>> myobject < in mylist
is not.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to