[issue39820] Bracketed paste mode for REPL: don't execute pasted command before ENTER is pressed explicitly

2021-07-27 Thread Michael Hofmann
Change by Michael Hofmann : -- nosy: +mhofmann ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39820] Bracketed paste mode for REPL: don't execute pasted command before ENTER is pressed explicitly

2021-02-17 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39820] Bracketed paste mode for REPL: don't execute pasted command before ENTER is pressed explicitly

2021-02-17 Thread Aaron Meurer
Aaron Meurer added the comment: To reiterate some points I made in the closed issues https://bugs.python.org/issue42819 and https://bugs.python.org/issue32019. A simple "fix" would be to emulate the non-bracketed paste buffering. That is, accept the input using bracketed paste, but split it

[issue39820] Bracketed paste mode for REPL: don't execute pasted command before ENTER is pressed explicitly

2021-02-15 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: -mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39820] Bracketed paste mode for REPL: don't execute pasted command before ENTER is pressed explicitly

2021-02-15 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-42819 "readline 8.1 bracketed paste". -- ___ Python tracker ___ ___

[issue39820] Bracketed paste mode for REPL: don't execute pasted command before ENTER is pressed explicitly

2021-02-15 Thread STINNER Victor
Change by STINNER Victor : -- title: Bracketed paste mode for REPL -> Bracketed paste mode for REPL: don't execute pasted command before ENTER is pressed explicitly ___ Python tracker

[issue39820] Bracketed paste mode for REPL

2021-02-15 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-32019 as a duplicate of this issue. -- nosy: +vstinner ___ Python tracker ___ ___

[issue39820] Bracketed paste mode for REPL

2020-05-18 Thread Aaron Meurer
Aaron Meurer added the comment: Related issue https://bugs.python.org/issue32019 -- nosy: +asmeurer ___ Python tracker ___ ___

[issue39820] Bracketed paste mode for REPL

2020-03-04 Thread Marco Sulla
Marco Sulla added the comment: IMHO such a feature is useful for sysops that does not have a graphical interface, as Debian without an X. That's why vi is (unluckily) very popular also in 2020. IDLE can't be used in this cases. Windows users can't remotely login without a GUI, so the

[issue39820] Bracketed paste mode for REPL

2020-03-03 Thread Terry J. Reedy
Terry J. Reedy 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

[issue39820] Bracketed paste mode for REPL

2020-03-03 Thread Eric V. Smith
Eric V. Smith added the comment: Reasonable people can disagree. If someone else thinks this can be done piecemeal, then I'm not stopping anyone. I just think that's a mistake and will lead to much frustration. -- ___ Python tracker

[issue39820] Bracketed paste mode for REPL

2020-03-03 Thread Marco Sulla
Marco Sulla added the comment: Excuse me, but my original "holistic" proposal was rejected and it was suggested to me to propose only relevant changes, and one for issue. Now you say exactly the contrary. I feel a bit confused. PS: yes, I can, and I use, IPython. But IMHO IPython does too

[issue39820] Bracketed paste mode for REPL

2020-03-03 Thread Eric V. Smith
Eric V. Smith added the comment: I suggest closing this issue. If the REPL is going to be improved, it won't be done one-feature-at-a-time on the bug tracker. It will need to have a holistic design that takes into account desired features and the architecture of the systems that it needs to

[issue39820] Bracketed paste mode for REPL

2020-03-03 Thread Marco Sulla
Marco Sulla added the comment: Please read the message of Terry J. Reed: https://bugs.python.org/issue38747#msg356345 I quote the relevant part below > Skipping the rest of your post, I will just restate why I closed this > issue. > > 1. It introduces too many features not directly

[issue39820] Bracketed paste mode for REPL

2020-03-03 Thread Mark Dickinson
Mark Dickinson added the comment: See also the discussion in #38747 (also opened by Marco), which was closed as rejected. This issue is close to a duplicate of that one. -- ___ Python tracker

[issue39820] Bracketed paste mode for REPL

2020-03-02 Thread Marco Sulla
Marco Sulla added the comment: > Is this even possible in a plain text console? Yes. See Jupyter Console (aka IPython). -- ___ Python tracker ___

[issue39820] Bracketed paste mode for REPL

2020-03-02 Thread Mark Dickinson
Mark Dickinson added the comment: Is this even possible in a plain text console (or plain text console + GNU readline-equivalent)? > Bracketed paste mode is implemented in many text editors, as vi. Sure, but the REPL is not a text editor, and knows very little about the context it's being

[issue39820] Bracketed paste mode for REPL

2020-03-01 Thread Marco Sulla
New submission from Marco Sulla : I suggest to add an implementation of bracketed paste mode in the REPL. Currently if you, for example, copy & paste a piece of Python code to see if it works, if the code have a blank line without indentation and the previous and next line are indented, REPL