New submission from Nick Coghlan: code.InteractiveConsole.push attempts to support multi-line input when using an input method that doesn't reliably split on newlines.
This support fails as soon as the multi-line input contains multiple statements (including when the last statement is incomplete). However, switching to 'exec' instead of 'single' causes other problems - specifically, it turns off the expression printing. While expression printing could be implied by the PyCF_DONT_IMPLY_DEDENT flag in addition to the "single" evaluation mode, it seems cleaner to break out the expression printing behaviour into its own flag and setting it appropriately in the code and/or codeop modules. ---------- components: Interpreter Core messages: 177199 nosy: aliles, kristjan.jonsson, ncoghlan priority: low severity: normal status: open title: Add a PyCF_PRINT_EXPRESSION_RESULTS flag versions: Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16649> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com