<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><span style="background-color:rgb(7,8,12);color:rgb(180,178,175);float:none;display:inline!important"><br></span></div><div dir="ltr"><span style="background-color:rgb(7,8,12);color:rgb(180,178,175);float:none;display:inline!important">I was writing some python code earlier, and I noticed that in a code that looks somwhat like this one :</span><br></div><div dir="ltr"><div dir="ltr"><div><br></div><div>    try:</div><div>        i = int("string")</div><div>        print("continued on")</div><div>        j = int(9.0)</div><div>    except ValueError as e:</div><div>        print(e)</div><div><br></div><div>>>> "invalid literal for int() with base 10: 'string'"</div><div><br></div><div>this code will handle the exception, but the code in the try block will not continue.</div><div><br></div><div>I propose to be able to use the continue keyword to continue the execution of the try block even when an error is handled. The above could then be changed to :</div><div><br></div><div><div><br class="m_-7229866003267730609gmail-Apple-interchange-newline">    try:</div><div>        i = int("string")</div><div>        print("continued on")</div><div>        j = int(9.0)</div><div>    except ValueError as e:</div><div>        print(e)</div><div>        continue</div><div><br></div><div>>>> "invalid literal for int() with base 10: 'string'"</div></div><div>>>> "continued on"</div><div><br></div><div><br></div></div></div>
</div></div>