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

Steven D'Aprano steve+comp.lang.python at pearwood.info
Tue Oct 4 21:28:26 EDT 2011


On Tue, 04 Oct 2011 21:07:10 -0400, Alan Meyer wrote:

> Incidentally, all of these exercises involve maintaining or re-writing
> existing code written by other people.  Students don't usually do much
> of that, but when they get a real job, they find that maintenance is
> most of what they actually do, especially as junior programmers.  Having
> to work in the real world of maintaining other people's code gives a
> student a better appreciation of the value of clean, modular, readable,
> documented code.

Well said that man!!!



-- 
Steven



More information about the Python-list mailing list