Python Forum
unreachable code - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: unreachable code (/thread-35664.html)



unreachable code - Skaperen - Nov-29-2021

who thinks Python should warn newbies about unreachable code such as code at the same indent that follows a return or continue?


RE: unreachable code - BashBedlam - Nov-29-2021

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


RE: unreachable code - Skaperen - Nov-29-2021

what if the IDE is a plain ole editor?