Wells Oliver wrote:
> Sometimes I see relatively small application, generally task scripts,
> written as essentially a list of statements. Other times, I see them neatly
> divided into functions and then the "if __name__ == '__main__':" convention.
> Is there a preference? Is there an... applicatio
Robert Kern wrote:
[sage advice snipped]
Don't waste half a day trying to figure out why your script
mysteriously doesn't work. Learn from my mistakes. :-)
I find that's the best type of mistake to learn from: other
people's ;-)
-tkc
--
http://mail.python.org/mailman/listinfo/python-list
On 2009-07-17 12:11, Tim Chase wrote:
Sometimes I see relatively small application, generally task scripts,
written as essentially a list of statements. Other times, I see them
neatly
divided into functions and then the "if __name__ == '__main__':"
convention.
Is there a preference? Is there an..
Sometimes I see relatively small application, generally task scripts,
written as essentially a list of statements. Other times, I see them neatly
divided into functions and then the "if __name__ == '__main__':" convention.
Is there a preference? Is there an... application scope such that the
prefe
Sometimes I see relatively small application, generally task scripts,
written as essentially a list of statements. Other times, I see them neatly
divided into functions and then the "if __name__ == '__main__':" convention.
Is there a preference? Is there an... application scope such that the
prefer