Is it possible to create C-style "main" function in Python? (for teaching purposes)
Chris Angelico
rosuav at gmail.com
Wed Oct 5 03:01:39 EDT 2011
On Wed, Oct 5, 2011 at 12:22 PM, Alan Meyer <ameyer2 at yahoo.com> wrote:
> Of course you'll need to be fair in evaluating the students comparisons.
> Some bright students are likely to come up with good reasons for using
> globals in some situations, and they might even be right. Or if they're not
> completely right, they might nevertheless be partly right. They should get
> high marks for that.
>
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.
ChrisA
More information about the Python-list
mailing list