[Python-Dev] A Horrible Inconsistency
Facundo Batista
facundobatista at gmail.com
Fri May 26 17:44:45 CEST 2006
2006/5/26, Sean Reifschneider <jafo-python-dev at tummy.com>:
> 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"
And remember I voted for returning an error, ;)
--
. Facundo
Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/
More information about the Python-Dev
mailing list