It's not a bug, it's a design choice you are disagreeing with: managing indentation is your job, not the interpreter's. For anything other than an absolutely trivial three-line script, I write in an editor that does a good job helping me manage indentation (in my case, emacs in Python mode).
<mikedianete...@gmail.com> writes: > The following snap shot of system prompt illustrates my problem. I have > tried 3.8, 3.92 and 3.10 with the same result. When I run in the window > interface it doesn't even display one row of ... but does print if I hit > return twice. I'm new to Python and was excited about learning it but am > becoming very frustrated over a bug in such a simple conditional statement > - please help as I would really like to master Python. > > Regards, > > Michael Terry > > > > Microsoft Windows [Version 10.0.19041.867] > > (c) 2020 Microsoft Corporation. All rights reserved. > > C:\WINDOWS\system32>py > > > > Python 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:18:16) [MSC v.1928 64 > bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for > more information. > > > > >>> dog_has_fleas=True > > >>> if dog_has_fleas: > > ... print('too bad') > > File "<stdin>", line 2 > > print('too bad') > > ^ > > IndentationError: expected an indented block > > >>> Microsoft Windows [Version 10.0.19041.867] > > > > > > Sent from [1]Mail for Windows 10 > > > > References > > Visible links > 1. https://go.microsoft.com/fwlink/?LinkId=550986 -- https://mail.python.org/mailman/listinfo/python-list