A Bug By Any Other Name ...
sjmachin at lexicon.net
Mon Jul 6 11:15:57 CEST 2009
On Jul 6, 12:32 pm, Lawrence D'Oliveiro <l... at geek-
> I wonder how many people have been tripped up by the fact that
> 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.
More information about the Python-list