Replace Several Items

John Machin sjmachin at lexicon.net
Wed Aug 13 20:29:27 EDT 2008


On Aug 14, 8:50 am, Wojtek Walczak
<gmin... at nie.ma.takiego.adresu.w.sieci.pl> wrote:
> Dnia Thu, 14 Aug 2008 00:31:00 +0200, Fredrik Lundh napisa³(a):
>
> >>>      if ch in my_string:
> >>>           my_string = my_string.replace(ch, "")
>
> >>> on representative data.
>
> >> I don't have to, I can anticipate the results.
>
> > Chances are that you're wrong.
>
> At the moment my average is about 0.75 of mistake per
> post on comp.lang.python (please, bare with me ;-)).
> I strongly believe that the statement I made above won't
> make this number rise.

Meta-mistake: Playing poker with the effbot. If he says diffidently
that he'll raise you a dime, it means he's holding five aces :-)

Clue: The effbot was the original author of the modern (Python 1.6?)
version of the re module.

HTH,
John





More information about the Python-list mailing list