Python Forum

Full Version: IndentationError message could be confusing to new programmers
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
This should be directed to python.org (which is not us)