[Python-bugs-list] [ python-Bugs-467381 ] print statement and exception
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 02 Oct 2001 19:19:44 -0700
Bugs item #467381, was opened at 2001-10-02 19:19
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=467381&group_id=5470
Category: Python Interpreter Core
Group: Python 2.1.1
Status: Open
Resolution: None
Priority: 5
Submitted By: paul rubin (phr)
Assigned to: Nobody/Anonymous (nobody)
Summary: print statement and exception
Initial Comment:
a = 3
b = 0
try:
print "quotient is",a/b
except: pass
print "sum is", a+b
prints something like "quotient is sum is 3".
The first print statement prints "quotient is"
before the exception is thrown, and then doesn't
print the final newline. The final newline should
be protected by the equivalent of a "finally" clause.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=467381&group_id=5470