R. David Murray <rdmurray at bitdance.com> added the comment: The else branch of the test should also check that 0 does *not* raise an error. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue8193> _______________________________________