IndentationError message could be confusing to new programmers - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: IndentationError message could be confusing to new programmers (/thread-10181.html) |
IndentationError message could be confusing to new programmers - insearchofanswers87 - May-16-2018 Not sure if this is the best subforum in which to post this. Please correct me if necessary. The Python docs distinguish between a suite in control statements and a block in functions or classes. However, when you get an IndentationError in a suite, Python displays, "IndentationError: expected an indented block." This could be confusing to someone new to Python. I am wondering if this error message can be tweaked so that it displays block or suite based on the context. RE: IndentationError message could be confusing to new programmers - Larz60+ - May-16-2018 This should be directed to python.org (which is not us) |