Is it possible to create C-style "main" function in Python? (for teaching purposes)

Roy Smith roy at panix.com
Wed Oct 5 08:57:04 EDT 2011


In article <mailman.1737.1317798109.27778.python-list at python.org>,
 Chris Angelico <rosuav at gmail.com> wrote:

> Definitely. There's always a right time to do the wrong thing, just as
> much as there's a wrong time to do the right thing. Even the
> much-maligned goto has its place.

Not in python, it doesn't :-)

But, yes, I agree that in languages that support it, it can be useful.  
When I was writing C++ for a living, I must have written a goto at least 
once every couple of years.



More information about the Python-list mailing list