May-16-2018, 04:42 PM
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.
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.