|
|
Subscribe / Log in / New account

Python multi-level break and continue

Python multi-level break and continue

Posted Sep 1, 2022 11:33 UTC (Thu) by caliloo (subscriber, #50055)
In reply to: Python multi-level break and continue by NRArnot
Parent article: Python multi-level break and continue

I have used the test variable and break method. But I must admit that every time, I did it in quick and dirty scripts a few 100 lines, that I did not want one minute more than necessary in.
It would be a useful tool for quick and dirty mods on top of existing things. But I think it would not get old in a code base really well. (I’m thinking interlaced label and breaks, now go read your code).

I find that one of the values of python is that it simply does not let you do too much dumb stuff language wise, no matter how in a hurry and clever you are… So for that reason I think I can live without it.


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds