This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 <58924c7b.88aaca0a.cfa79.b263@mx.google.com>
In-reply-to <1485981548.79.0.553431256398.issue29339@psf.upfronthosting.co.za>
Content
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
To: xoviat@gmail.com
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 <report@bugs.python.org>
<http://bugs.python.org/issue29339>
_______________________________________
History
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