[Tutor] problem with defining a global class instance

2006-11-17 Thread sharath B N
hi, i am sort of newbie to python. I am trying to do a super Market simulation with OOP in python. I have problems with using a class instance as global... def generate (... ,,...) " in this function i define the global variables " global stock,stockManager, manager etc. class Manager ... .

Re: [Tutor] problem with defining a global class instance

2006-11-17 Thread Alan Gauld
"sharath B N" <[EMAIL PROTECTED]> wrote > i am sort of newbie to python. I am trying to do a super Market > simulation with OOP in python. I have problems with using a class > instance as global... > def generate (... ,,...) > > " in this function i define the global variables " > global stoc

[Tutor] problem with defining a global class instance

2006-11-16 Thread sharath B N
hi, i am sort of newbie to python. I am trying to do a super Market simulation with OOP in python. I have problems with using a class instance as global... def generate (... ,,...) " in this function i define the global variables " global stock,stockManager, manager etc. class Manager ... .