GNU bug report logs - #28051
[w32 / python "legacy" completion] Multiline Statement Indentation Error

Previous Next

Package: emacs;

Reported by: evgeniy.sharapov <at> gmail.com

Date: Fri, 11 Aug 2017 17:55:02 UTC

Severity: normal

Tags: confirmed, patch

Found in version 25.2

Fixed in version 26.1

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


Message #21 received at 28051 <at> debbugs.gnu.org (full text, mbox):

From: npostavs <at> users.sourceforge.net
To: evgeniy.sharapov <at> gmail.com
Cc: 28051 <at> debbugs.gnu.org
Subject: Re: bug#28051: 25.2;
 Multiline Statement Indentation Error in Inferior Python Mode
Date: Sat, 19 Aug 2017 10:45:13 -0400
evgeniy.sharapov <at> gmail.com writes:

> leads to IndentationError once I try to enter multi-line statements in
> the Inferior python mode. 
>
> Steps:
>
> 1. Start Emacs
> 2. M-x run-python
> 3. try to enter something simple like
>
>    for x in range(10):<RET>
>    <TAB>print x<RET>
>
> 4. The following error occurs:
>
> File "<stdin>", line 1
>     print x
>     ^
> IndentationError: unexpected indent

Does it help if you install pyreadline?  From comments in python.el:

    ;; If your
    ;; Python installation lacks readline (like CPython for Windows),
    ;; installing pyreadline (URL `http://ipython.org/pyreadline.html')
    ;; should suffice.  To troubleshoot why you are not getting any
    ;; completions, you can try the following in your Python shell:

    ;; >>> import readline, rlcompleter

    ;; If you see an error, then you need to either install pyreadline or
    ;; setup custom code that avoids that dependency.




This bug report was last modified 7 years and 269 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.