On Jul 6, 12:32 pm, Lawrence D'Oliveiro <l...@geek-
central.gen.new_zealand> wrote:
> I wonder how many people have been tripped up by the fact that
>
>     ++n
>
> and
>
>     --n
>
> fail silently for numeric-valued n.

What fail? In Python, ++n and --n are fatuous expressions which
SUCCEED silently except for rare circiumstances e.g. --n will cause an
overflow exception on older CPython versions if isinstance(n, int) and
n == -sys.maxint - 1.

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

Reply via email to