[Python-Dev] list.discard? (Re: dict.discard)

Steve Holden steve at holdenweb.com
Fri Sep 22 06:41:38 CEST 2006


Fred L. Drake, Jr. wrote:
> On Thursday 21 September 2006 20:21, Greg Ewing wrote:
>  >    if x not in somelist:
>  >      somelist.remove(x)
> 
> I'm just guessing you really meant "if x in somelist".  ;-)
> 
No you aren't, that's clearly an *informed* guess.

regards
  Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC/Ltd          http://www.holdenweb.com
Skype: holdenweb       http://holdenweb.blogspot.com
Recent Ramblings     http://del.icio.us/steve.holden



More information about the Python-Dev mailing list