Author xoviat
Recipients Jim Fasarakis-Hilliard, brett.cannon, emilyemorehouse, serhiy.storchaka, terry.reedy, xoviat
Date 2017-02-01.21:00:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
That one is pretty tricky. The only way that I can think of is to delay indentation until the first character is typed, and not to indent if it is a space or tab. 

From: Serhiy Storchaka
Sent: Wednesday, February 1, 2017 2:39 PM
Subject: [issue29339] Interactive: Move to same indentation level as previousline

Serhiy Storchaka added the comment:

Any autoindetation breaks pasting from the clipboard since there is no way to distinguish characters entered from the keyboard from characters pasted from the clipboard. In IDLE or other visual shell we can add a special menu entry and hotkeys for pasting from clipboards without autoindenting, but in a REPL in text terminal this is not possible.

IPython3 solved this issue by adding special magic functions, but this is not a way for CPython.

nosy: +serhiy.storchaka

Python tracker <>
Date User Action Args
2017-02-01 21:00:46xoviatsetrecipients: + xoviat, brett.cannon, terry.reedy, serhiy.storchaka, emilyemorehouse, Jim Fasarakis-Hilliard
2017-02-01 21:00:46xoviatlinkissue29339 messages
2017-02-01 21:00:46xoviatcreate