Reinhold Birkenfeld wrote: > John Bokma wrote: >> Mage wrote: >> >>> praba kar wrote: >>> >>>>Dear All, >>>> >>>> In Python what is equivalent to goto statement >>>> >>>> >>>> >>> You shouldn't use goto in high-level languages. >> >> Nonsense > > Thank you! > > Above all your claim is well justified.
You are probably smart enough to think of several situations that justify the use of a goto (or something that is a goto in disguise, like an early return in a function, a break or a continue, or a switch). One can abuse a goto in any language, like every other language construction. But don't make it a "shouldn't" like a law. Some people take Dijkstra too serious. Learn to think for yourself, I am sure he did. -- John MexIT: http://johnbokma.com/mexit/ personal page: http://johnbokma.com/ Experienced programmer available: http://castleamber.com/ Happy Customers: http://castleamber.com/testimonials.html -- http://mail.python.org/mailman/listinfo/python-list