[issue39820] Bracketed paste mode for REPL

Terry J. Reedy report at bugs.python.org
Wed Mar 4 00:44:51 EST 2020


Terry J. Reedy <tjreedy at udel.edu> added the comment:

Adding functions to builtins (2 of Marco's 8 #38747 ideas) should be separate from patching the repl code.  I agree that the latter should not be done piecemeal.  I previous wrote that we need a pydev REPL enhancement policy discussion *first* and explicitly asked Marco "please don't rush to immediately open 8 new issues."  

I do think that if there were an *approved* set of new features, several patches would be best, but that is moot at present.

IDLE already has this feature, and most of the other enhancements Marco wants. (msg363325) The key for this one is that tcl/tk does not trigger <Key> events when inserting pasted code, so only a keyed newline triggers IDLE's user code processing.  But other IDLE features are much harder, and I suspect that this would also be in the Windows console.

In msg356327, Eric Sun, one of our best Windows experts, outlined the major difficulties of changing things on Windows' console.  He only said something half-way encouraging about autoindent but otherwise thought that a working stdlib Windows readline extension would be needed.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39820>
_______________________________________


More information about the Python-bugs-list mailing list