Facundo Batista wrote: > 2006/5/26, Sean Reifschneider <[EMAIL PROTECTED]>: > >> On Fri, May 26, 2006 at 12:37:02PM -0300, Facundo Batista wrote: >> >- Treat the negative as a reverser, so we get back (3, 2, 1). >> >> Then we could get: >> >> >>> print -123 >> 321 > > An integer is NOT a sequence. > > OTOH, that should be consistent to > >>>> -1 * "123" > "321"
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> Georg _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com