Re: [BangPypers] calling instance of the other class.

2009-07-16 Thread Madhubala
Hi, I would like to put one design for discussion and would like to get appropriate solution after discussions. The details are below. There are three dictionaries like goodObjects{name:object} # object can be any data type which cannot/need not hold its type as good etc. badO

Re: [BangPypers] calling instance of the other class.

2009-06-24 Thread learningpython
bangpyper wrote: > > On Wed, Jun 24, 2009 at 7:42 AM, Jeff Rush wrote: > >> learningpython wrote: >> > Hi Jeff, >> > Can i ask you a related question. Long shot .. >> > but since you have good idea of area i am working ( which is >> communications, >> > sending, decoding, encoding) data over

Re: [BangPypers] calling instance of the other class.

2009-06-24 Thread Anand Balachandran Pillai
On Wed, Jun 24, 2009 at 7:42 AM, Jeff Rush wrote: > learningpython wrote: > > Hi Jeff, > > Can i ask you a related question. Long shot .. > > but since you have good idea of area i am working ( which is > communications, > > sending, decoding, encoding) data over a serial interface. > > I have a

Re: [BangPypers] calling instance of the other class.

2009-06-23 Thread Jeff Rush
learningpython wrote: > Hi Jeff, > Can i ask you a related question. Long shot .. > but since you have good idea of area i am working ( which is communications, > sending, decoding, encoding) data over a serial interface. > I have a problem, i am facing.. Like in ASN format.. > I have a Data Unit

Re: [BangPypers] calling instance of the other class.

2009-06-23 Thread Jeff Rush
Senthil Kumaran wrote: > On Tue, Jun 23, 2009 at 03:50:42AM -0500, Jeff Rush wrote: >>> just pass the & of the another structure in the structure element, some > > Jeff: you seem to have got what he was trying to do with message > sending. Is this some standard way over serial port, as you went >

Re: [BangPypers] calling instance of the other class.

2009-06-23 Thread learningpython
Hi Jeff, Can i ask you a related question. Long shot .. but since you have good idea of area i am working ( which is communications, sending, decoding, encoding) data over a serial interface. I have a problem, i am facing.. Like in ASN format.. I have a Data Unit ( am defining a class for each )

Re: [BangPypers] calling instance of the other class.

2009-06-23 Thread learningpython
Thank you Senthil. It's been a learning exp for me.. I must pace up, i promise if given continued opportunity to code, i will learn soon. This is a running project, so the flattner is very much needed. I hope i learn more. Actually created a system wherein later i can use it at ease to send vari

Re: [BangPypers] calling instance of the other class.

2009-06-23 Thread learningpython
Thank you Jeff, Thanks a ton. Yes also about the flatnner. I am using the library given already. I am asked to use a pack command which i presume is what you try to explain me. I am long way to go, learning at a very slow pace. Maybe i should speed up of this delivery. The pack i am using is very

Re: [BangPypers] calling instance of the other class.

2009-06-23 Thread Senthil Kumaran
On Tue, Jun 23, 2009 at 03:50:42AM -0500, Jeff Rush wrote: > > just pass the & of the another structure in the structure element, some > > thing close. > > The equivalent to the & operator in C is just an object reference in Python. > Yes, the Original Poster (learningpython): When you have: c

Re: [BangPypers] calling instance of the other class.

2009-06-23 Thread Jeff Rush
learningpython wrote: > Sorry Senthil and all, > I am sure, it's pretty easy but don't i am not able to catch it. In C, i > just pass the & of the another structure in the structure element, some > thing close. The equivalent to the & operator in C is just an object reference in Python. > class S

Re: [BangPypers] calling instance of the other class.

2009-06-22 Thread learningpython
Sorry Senthil and all, I am sure, it's pretty easy but don't i am not able to catch it. In C, i just pass the & of the another structure in the structure element, some thing close. Here is what i do .. a class is defined as mentioned, now this class is element of another class class Send_Msg_req

Re: [BangPypers] calling instance of the other class.

2009-06-22 Thread Senthil Kumaran
On Mon, Jun 22, 2009 at 04:35:35AM -0700, learningpython wrote: > Please can you tell me how to pass instance of above class as a member of > the new message created in similar lines with one of the elements is the > complete data above (instance of above class). > > I am encapsulating above mes