list index()

Carsten Haese carsten at uniqsys.com
Fri Aug 31 00:10:17 EDT 2007


On Thu, 30 Aug 2007 20:06:38 -0700, zzbbaadd wrote
> On Aug 30, 4:48 pm, "Chris Mellon" <arka... at gmail.com> wrote:
> > > It suddenly dawned on me that what would be best would be a contains()
> > > (or IN syntax for those who can't afford to wait) for lists.
> >
> > > if mylist.contains("hello):
> >
> > Genius. Why didn't anyone think of that before?
> 
> With an attitude like that Chris, don't expect to be getting an 
> invite to beta test my Python 3 fork.

Welcome to comp.lang.python, where laziness is punished with brutal sarcasm.

--
Carsten Haese
http://informixdb.sourceforge.net




More information about the Python-list mailing list