[Python-Dev] A Horrible Inconsistency

Fred L. Drake, Jr. fdrake at acm.org
Fri May 26 18:00:44 CEST 2006


On Friday 26 May 2006 11:50, Georg Brandl wrote:
 > This is actually a nice idea, because it's even a more nonintuitive
 > answer for Python newbies posting to c.l.py asking how to reverse
 > a string <wink>

Even better:

    "123"*-1

We'd get to explain:

- what the "*-" operator is all about, and

- why we'd use it with a string and an int.

I see possibilities here.  :-)


  -Fred

-- 
Fred L. Drake, Jr.   <fdrake at acm.org>


More information about the Python-Dev mailing list