Steven D'Aprano wrote:
if the keyhole optimizer raised SyntaxError (or some other exception) on seeing this:

def f():
    return 1 + "1"

That might break code that was deliberately trying to raise
an exception. Sometimes you see things like

  try:
    1/0
  except Exception, e:
    ...

Usually this kind of thing is only done in test code or
illustrative snippets, but even so, it should work as
expected.

--
Greg
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to