Jay Loden <[EMAIL PROTECTED]> wrote:
   ...
> For what it's worth, with python 2.5 on my Macbook:

Hmmm, doesn't look to me as if it's worth much...:

> [EMAIL PROTECTED] jloden]$ python -m timeit 's = "onomatopoeia"; s =
s.join(s[::-1])'

since what you're doing is...:

>>> s = "onomatopoeia"
>>> s = s.join(s[::-1])
>>> s
'aonomatopoeiaionomatopoeiaeonomatopoeiaoonomatopoeiaponomatopoeiaoonoma
topoeiatonomatopoeiaaonomatopoeiamonomatopoeiaoonomatopoeianonomatopoeia
o'
>>>

...which isn't really just reversing the string, but quite a bit more
work!-)


Alex
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to