[Tutor] line labels?
alan.gauld@bt.com
alan.gauld@bt.com
Wed, 23 May 2001 15:35:36 +0100
> Does Python support labelling lines of code?
I don't think so, but then the new features I keep
finding continue to amaze me!
> if (condition) {
> last while1;
I think the nearest to that in Python would be a
combination of break and continue statements...
> Personally, I consider using those labels in Perl and C to be bad
> form and "goto" is just plain heinous.
There are times when they are handy, but they're pretty rare.
In 3 years with Python I've not missed them yet.
Alan g