Re: Total newbie question: Best practice

2011-11-30 Thread Pedro Henrique G. Souto
On 30/11/2011 06:50, Shambhu Rajak wrote: Collins Congratulations for your first step into Python Programming. You can call them script or programs(not necessarily but depends on what your coding for). Yaa..it's always a good practice to call it through main(), but it doesn't really matter you

RE: Total newbie question: Best practice

2011-11-30 Thread Shambhu Rajak
Collins Congratulations for your first step into Python Programming. You can call them script or programs(not necessarily but depends on what your coding for). Yaa..it's always a good practice to call it through main(), but it doesn't really matter you can call the method in way Regards,

Re: Total newbie question: Best practice

2011-11-29 Thread Colin Higwell
On Tue, 29 Nov 2011 16:57:18 -0500, Dave Angel wrote: > On 11/29/2011 03:06 PM, Colin Higwell wrote: >> Hi, >> >> I am just starting to learn Python (I have been at it only a few >> hours), so please bear with me. I have a few very small scripts (do you >> call them scripts or programs?) which wor

Re: Total newbie question: Best practice

2011-11-29 Thread Dave Angel
On 11/29/2011 03:06 PM, Colin Higwell wrote: Hi, I am just starting to learn Python (I have been at it only a few hours), so please bear with me. I have a few very small scripts (do you call them scripts or programs?) which work properly, and produce the results intended. However, they are mono

Re: Total newbie question: Best practice

2011-11-29 Thread Neil Cerutti
On 2011-11-29, Arnaud Delobelle wrote: > As for the main() function, I don't think it is standard > practice in Python. There is no requirement to have a main() > function. You can use the idiom: I don't start off with a main function, but if my script gets long and complicated, or if global na

Re: Total newbie question: Best practice

2011-11-29 Thread Chris Angelico
On Wed, Nov 30, 2011 at 7:06 AM, Colin Higwell wrote: > However, they are monolithic in nature; i.e. they begin at the beginning > and finish at the end. Having done a little reading, I note that it seems > to be quite common to have a function main() at the start (which in turn > calls other func

Re: Total newbie question: Best practice

2011-11-29 Thread Arnaud Delobelle
On 29 November 2011 20:06, Colin Higwell wrote: > Hi, Hi Colin, and welcome to Python :) > I am just starting to learn Python (I have been at it only a few hours), > so please bear with me. I have a few very small scripts (do you call them > scripts or programs?) which work properly, and produce