Terry J. Reedy <tjre...@udel.edu> 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 <rep...@bugs.python.org> <https://bugs.python.org/issue35817> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com