Re: Question on class module import

2009-12-05 Thread monkeyboy
Thank you, that clears it for me -- http://mail.python.org/mailman/listinfo/python-list

Question on class module import

2009-12-04 Thread monkeyboy
Hello, I want to write a wrapper class around a windows dll. If I put the class in a module "Refprop.py" then import the class where I want to use it, does the whole module get read by the interpreter or just the class code?... For example if I say the following in "Refprop.py" does the code abov

Re: Simple Class/Variable passing question

2008-06-19 Thread monkeyboy
On Jun 19, 6:37 pm, Matt Nordhoff <[EMAIL PROTECTED]> wrote: > monkeyboy wrote: > > Hello, > > > I'm new to python, and PythonCard. In the code below, I'm trying to > > create a member variable (self.currValue) of the class, then just pass > >

Simple Class/Variable passing question

2008-06-19 Thread monkeyboy
Hello, I'm new to python, and PythonCard. In the code below, I'm trying to create a member variable (self.currValue) of the class, then just pass it to a simple function (MainOutputRoutine) to increment it. I thought Python "passed by reference" all variables, but the member variable doesn't seem

Help with weave.blitz()

2006-12-11 Thread monkeyboy
Hello, I'm a new scipy user, and I'm trying to speed up some array code with weave. I'm running xp with gcc from cgywin, and scipy.weave.test() returns an OK status. I'm trying to speed up the code below. I've found a couple of examples of weave on the web, and I think it should be straight forwa

Re: Execution time of lines within a function

2006-12-04 Thread monkeyboy
s for your help Neil Cerutti wrote: > On 2006-12-04, monkeyboy <[EMAIL PROTECTED]> wrote: > > Thanks Neil, > > > > I looked at that, but maybe I don't understand the output. I > > was hoping to see the cummulative time for the function and > > the

Re: Execution time of lines within a function

2006-12-04 Thread monkeyboy
0.126 rpc.py:242(decoderesponse)(12) 0.015 rpc.py:277(getresponse)(12) 48.166 Regards, Frank Neil Cerutti wrote: > On 2006-12-04, monkeyboy <[EMAIL PROTECTED]> wrote: > > I have a function that hotshot says

Execution time of lines within a function

2006-12-04 Thread monkeyboy
Hello, I have a function that hotshot says is very slow. I can get the aggregate execution time, but is there a way to get the execution time of each line so I can find the bottleneck? Thank you -- http://mail.python.org/mailman/listinfo/python-list

Plot pkg - Multiple Y axes?

2006-11-06 Thread monkeyboy
Hello, I'm searching for a plotting package that will allow multiple y axes of different scales. For example I'd like to overlay 4 or 5 time series with each series having a separate axis. Does anyone know of such a package? Thank you, Frank -- http://mail.python.org/mailman/listinfo/python-li