[issue35817] IDLE 2.713 on debian 9.6 over WSL W10 IdentationError

2019-01-24 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

In the Debian screenshot with the traceback, you run interactive Python, not 
IDLE, in the system terminal, with the command-line entry 'python'.  Notice the 
secondary ... prompt.

The bug in the code you entered is indicated by the error message.  In 
interactive Python you have to indent the bodies of compound statements 
yourself.  (IDLE does this for you with its 'smart indent' feature.)  In the 
future, please ask questions about exception messages (and Python in general) 
on python-list or elsewhere.  Perhaps you should also reread the Python 
Tutorial.

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35817] IDLE 2.713 on debian 9.6 over WSL W10 IdentationError

2019-01-24 Thread Audric


New submission from Audric :

Hello,

The screenshot attached is a clear repro.

Environment:
Surface Pro 3 Win 10 1803 Python 2.7.14
WSL Debian 9.6 with Python 2.7.13

Code:
>>elements = []
>>for i in range(0, 6):
>>...elements.append(i)

---

Working:
>>print elements
>>[0, 1, 2, 3, 4, 5]

Non working:
  File "", line 2
elements.append(i)
   ^
IndentationError: expected an indented block

--
assignee: terry.reedy
components: IDLE
files: py27debian9wslw10indentationerror.PNG
messages: 334293
nosy: audricd, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE 2.713 on debian 9.6 over WSL W10 IdentationError
type: behavior
versions: Python 2.7
Added file: 
https://bugs.python.org/file48076/py27debian9wslw10indentationerror.PNG

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com