Re: function-class frustration

2008-03-22 Thread Gabriel Genellina
En Sat, 22 Mar 2008 07:07:18 -0300, John Machin <[EMAIL PROTECTED]> escribi�: > On Mar 22, 7:19 pm, [EMAIL PROTECTED] wrote: > >> On the other hand, are you willing to make changes to the console? >> How big and what? I was thinking of __ to keep the second-to-last >> most recent command. > > A

Re: function-class frustration

2008-03-22 Thread Arnaud Delobelle
On Mar 22, 10:07 am, John Machin <[EMAIL PROTECTED]> wrote: > On Mar 22, 7:19 pm, [EMAIL PROTECTED] wrote: > > > > > On the other hand, are you willing to make changes to the console? > > How big and what?  I was thinking of __ to keep the second-to-last > > most recent command. > > Access to and e

Re: function-class frustration

2008-03-22 Thread John Machin
On Mar 22, 7:19 pm, [EMAIL PROTECTED] wrote: > > On the other hand, are you willing to make changes to the console? > How big and what? I was thinking of __ to keep the second-to-last > most recent command. Access to and editing of previous input lines is already provided by the cooked mode of t

Re: function & class

2007-02-19 Thread Bjoern Schliessmann
jupiter wrote: > I am getting this error when I am using sql command within > class.function accessing from another class > > how can I create seperate instance for sqlite objects ??? Trying to help you gets boring. I suggest reading the material that's being offered. Regards, Björn --

Re: function & class

2007-02-18 Thread jupiter
c.execute("select symbol,tvolume,date,time from "+self.dbase+" where symbol= ?",t) ProgrammingError: SQLite objects created in a thread can only be used in that sa me thread.The object was created in thread id 976 and this is thread id 944 I am getting this error when I am using sql command wi

Re: function & class

2007-02-18 Thread Bjoern Schliessmann
jupiter wrote: > My problem is I want to use threading You're right. Why do you think you want to use (multi-)threading? > and I might need to pass values between function and classes. I am > not sure how this can be done. I have read about classes and I > know they are like function however do

Re: function & class

2007-02-18 Thread [EMAIL PROTECTED]
Bruno Desthuilliers wrote: > Classes are used to define and create ('instanciate' in OO jargon) Good info from Bruno, just a quick note that it's spelled "instantiate" (I'm not usually big on spelling corrections but since you were teaching a new word I thought it might be worthwile). -- http://

Re: function & class

2007-02-18 Thread Bruno Desthuilliers
jupiter a écrit : > hi friends, > > I have a program like > > some variable definations > > a function ( arg1, agr2): > do something with arg1 & arg2 > return a list > > if condition >do this function(arg1,arg2) > else > if condition > do this function >else >