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

function-class frustration

2008-03-22 Thread castironpi
>>> FunctionType.__eq__= 0 Traceback (most recent call last): File "", line 1, in TypeError: can't set attributes of built-in/extension type 'function' >>> type( 'F', ( FunctionType, ), { '__eq__': e } ) Traceback (most recent call last): File "", line 1, in TypeError: type 'function' is not

Re: How to find parent function/class of generators?

2007-08-31 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, J. A. Aczel wrote: > Unfortunately, generator objects don't seem to include any information > about the parent object or function that created them. So add your own. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to find parent function/class of generators?

2007-08-25 Thread Terry Reedy
"J. A. Aczel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Hello all. I think I should explain my problem in detail, so everyone | understands what I'm trying to do and why. There may be a better | approach to the whole problem then I am using. | | I am working on a game, with mo

How to find parent function/class of generators?

2007-08-25 Thread J. A. Aczel
Hello all. I think I should explain my problem in detail, so everyone understands what I'm trying to do and why. There may be a better approach to the whole problem then I am using. I am working on a game, with most of my AI code & such divided up into generator functions (really coroutines that d

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 >

function & class

2007-02-18 Thread jupiter
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 do this My problem is I want to use threadin