Re: A newbie question about some code

2009-05-18 Thread Dave Angel
Jim Qiu wrote: Hi everyone. I am reading a python library code and found something i can not understand. Please help! class Envelope(object): def __init__(self,ta_info): self.ta_info = ta_info def writefilelist(self,ta_list,tofile): for filename in ta_list:

Re: A newbie question about some code

2009-05-18 Thread Jim Qiu
On Mon, May 18, 2009 at 5:30 PM, Rhodri James wrote: > On Mon, 18 May 2009 10:18:52 +0100, Jim Qiu > wrote: > > Please check the blue highlighted part, I don't understand how the object >> get the property? >> > > Colours and highlighting don't come across in Usenet postings. Could > you be a

Re: A newbie question about some code

2009-05-18 Thread Chris Rebert
On Mon, May 18, 2009 at 2:18 AM, Jim Qiu wrote: > Hi everyone. > I am reading a python library code and found something i can not understand. > Please help! > class Envelope(object): >     def __init__(self,ta_info): >         self.ta_info = ta_info > >     def writefilelist(self,ta_list,tofile):

Re: A newbie question about some code

2009-05-18 Thread Rhodri James
On Mon, 18 May 2009 10:18:52 +0100, Jim Qiu wrote: Please check the blue highlighted part, I don't understand how the object get the property? Colours and highlighting don't come across in Usenet postings. Could you be a bit more specific. Which object, and what property? -- Rhodri Jame

A newbie question about some code

2009-05-18 Thread Jim Qiu
Hi everyone. I am reading a python library code and found something i can not understand. Please help! class Envelope(object): def __init__(self,ta_info): self.ta_info = ta_info def writefilelist(self,ta_list,tofile): for filename in ta_list: fromfile = botsl