[New-bugs-announce] [issue25819] print "Hi" in python 3 exception handling doesn't work

Calvin Simpkinson report at bugs.python.org
Mon Dec 7 17:44:49 EST 2015


New submission from Calvin Simpkinson:

When you execute the code:
try:
    print "Hi"
except:
    print("Hello")

in python 3.5, it creates a syntax error in Terminal on Mac and a pop-up error in IDLE, while it should just print Hello in the console.

----------
messages: 256083
nosy: Calvin Simpkinson
priority: normal
severity: normal
status: open
title: print "Hi" in python 3 exception handling doesn't work
type: behavior
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25819>
_______________________________________


More information about the New-bugs-announce mailing list