R. David Murray added the comment:

I would lean toward bug fix.  I'm sure this was just overlooked when exception 
chaining was added, and as Claudiu says, the contract of code is to emulate the 
interactive interpreter, so not doing so in this instance looks like a bug to 
me.

It is certainly conceivable that it could disrupt working programs, but I would 
think most such would be interactive programs that would benefit from the fix 
without breaking.  Does anyone know of a counter example or can think of a use 
case for the code module that this change would be likely to break?

(Note: if there is a use case that somehow parses the output, introducing blank 
lines and extra traceback clauses could easily be a breaking change...but is 
there such a use case?)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17442>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to