Remove Whitespace

Fredrik Lundh fredrik at pythonware.com
Fri Apr 14 05:28:30 EDT 2006


John Machin wrote:

> > $ python2.4 -mtimeit -s "str = 'D c a V e r \" = d w o r d : 0 0 0 0 0 6
> > 4 0'" 'str.replace(" ", "")'
>
> Oi! The OP mentioned "whitespace" ...

yeah. but as is obvious from his examples, he really means "UTF-16", not
whitespace.

</F>






More information about the Python-list mailing list