Subject: bug#28051: Multiline Statement Indentation Error in Inferior Python Mode

From: Glenn Morris <[email-masked]>
Date: Sat, 12 Aug 2017 13:50:29 -0400

Evgeniy Sharapov wrote:

> 1. Start emacs without any .emacs or .emacs.d/init.el files

emacs -Q is better

> 2. Start Inferior python mode by M-x run-python
> 3. Enter first line of multi-line statement, press Enter and then start
> entering second line
>
>>>> for x in range(10):<RET>
> ...<TAB>pri
>
> 4. Now press C-M-i, it will complete it to `print`, then enter x so the
> second line looks like
>
> ...     print x
>
> 5. Now press Enter
>
> instead of a ... prompt you should get an error

Works fine for me. Python 2.7.13 on Debian, Python 2.7.5 on RHEL 7.