Re: splitting common functions into a sepperate module

2007-03-08 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > On 8 mrt, 10:36, Bruno Desthuilliers > - wrapping the functions as methods of a class, passing the whole state >> as args to the class initializer. > I already considerate this one, but I don't like it because it is not > correct in terms of the object-oriented concept

Re: splitting common functions into a sepperate module

2007-03-08 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, jonkersbart wrote: >> - wrapping the functions as methods of a class, passing the whole state >> as args to the class initializer. > I already considerate this one, but I don't like it because it is not > correct in terms of the object-oriented concept. Why? I thought com

Re: splitting common functions into a sepperate module

2007-03-08 Thread jonkersbart
On 8 mrt, 10:36, Bruno Desthuilliers wrote: > [EMAIL PROTECTED] a écrit : > > > Dear, > > > I have wrote a script and want to group some functions of the script > > in a separate modulo so that I can import the module in other scripts > > and use the same functions there.. > > > The problem is tha

Re: splitting common functions into a sepperate module

2007-03-08 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > Dear, > > I have wrote a script and want to group some functions of the script > in a separate modulo so that I can import the module in other scripts > and use the same functions there.. > > The problem is that the common functions need access to some global > varia

Re: splitting common functions into a sepperate module

2007-03-08 Thread Gabriel Genellina
En Thu, 08 Mar 2007 05:45:24 -0300, <[EMAIL PROTECTED]> escribió: > I have wrote a script and want to group some functions of the script > in a separate modulo so that I can import the module in other scripts > and use the same functions there.. > > The problem is that the common functions need ac

splitting common functions into a sepperate module

2007-03-08 Thread jonkersbart
Dear, I have wrote a script and want to group some functions of the script in a separate modulo so that I can import the module in other scripts and use the same functions there.. The problem is that the common functions need access to some global variables defined in the script. Python uses diff