Python Forum

Full Version: unreachable code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
who thinks Python should warn newbies about unreachable code such as code at the same indent that follows a return or continue?
I say let the IDE catch it instead of the python interpreter. There’s no need to stop a running script for something so trivial. Even a beginner will eventually figure out what's going on and it will be a learning experience. That's my story and I'm sticking to it Cool
what if the IDE is a plain ole editor?