"IndentationError: unexpected indent" in Python Console when pressing "SHIFT + ALT + E" [PyCharm 2016.3]

Answered

PyCharm Version 2016.3

Python Console

Example Code:

class FUN(object):
def __init__(self):
self.a = 1

def process_fun(self):
buffer = load_my_data()
self.a = len(buffer)

 

Given the above exmple code: I want to interactively execute one or more lines again e.g. 

        buffer = load_my_data()

To do so, I move the curser on the line an press "SHIFT + ALT + E" This worked in ALL previeous versions of PyCharm and now it fails, because this line of code is copied into the Python Console with indentation!!! Thus I get the Error message:

>>>         buffer = load_my_data()
...
File "<input>", line 1
         buffer = load_my_data()
         ^
IndentationError: unexpected indent

This is a CRITICAL DRAWBACK in terms of functionality and usability!

I expect that executing one or more lines by pressing "SHIFT + ALT + E" will result in the correct indentation in the interactive python console! If this error is not fixed I will move back to PyCharm 2016.2

Cheers 

Christof

 

 

1
2 comments
0
Avatar
Permanently deleted user
0

Please sign in to leave a comment.