Re: passing object between classes

2009-09-22 Thread Duncan Booth
daved170 wrote: > Is there any existing python Log object that do so? There is. See Jean-Michel Pichavant's reply. > I no, I created my > own Log object that only open file and write a line to it, > how can I make it be global? You could assign it to a global name. > Should I use it as a sta

Re: passing object between classes

2009-09-21 Thread Jean-Michel Pichavant
daved170 wrote: On Sep 21, 1:44 pm, Duncan Booth wrote: daved170 wrote: Hi everybody, I built my owen log obj as a class. I'm passing it to another object (actually to a thread). When I run my app it raise error at the line when I'm using that log obj. is there any problem with the co

Re: passing object between classes

2009-09-21 Thread daved170
On Sep 21, 1:44 pm, Duncan Booth wrote: > daved170 wrote: > > Hi everybody, > > I built my owen log obj as a class. > > I'm passing it to another object (actually to a thread). > > When I run my app it raise error at the line when I'm using that log > > obj. is there any problem with the concept

Re: passing object between classes

2009-09-21 Thread Duncan Booth
daved170 wrote: > Hi everybody, > I built my owen log obj as a class. > I'm passing it to another object (actually to a thread). > When I run my app it raise error at the line when I'm using that log > obj. is there any problem with the concept of passing object as I do > it? > How can I do that?

passing object between classes

2009-09-21 Thread daved170
Hi everybody, I built my owen log obj as a class. I'm passing it to another object (actually to a thread). When I run my app it raise error at the line when I'm using that log obj. is there any problem with the concept of passing object as I do it? How can I do that? class A: def foo1: myLog =