Re: Converting existing module/objects to threads

2006-10-18 Thread [EMAIL PROTECTED]
martdi wrote: [EMAIL PROTECTED] wrote: I have inheirted some existing code, that i will explain in a moment, have needed to extend and ultimately should be able to run in threads. I've done a bunch of work with python but very little with threads and am looking for some pointers on how

Re: Converting existing module/objects to threads

2006-10-18 Thread martdi
I am not sure if I understand you question well, but: in the __init__ of the thread subclass, you can instantiate an object of the class that makes the work or ControllerThread could extend both classes and i don't think there would be a problem. Problems in multithreading usually happen

Re: How to use python in TestMaker

2006-10-18 Thread Paddy
kelin,[EMAIL PROTECTED] wrote: Hello, Now I 'm learning python to do testing jobs, and want to use it in TestMaker. The problem is: I don't know how to use python in TestMaker. Just write python program in it or call .py files in it? I am really new about it and need some help. Thanks a

Re: Getting method name from within the class method

2006-10-18 Thread George Sakkis
Mitko Haralanov wrote: On 18 Oct 2006 14:38:12 -0700 [EMAIL PROTECTED] wrote: class test(object): ... def a_method(self,this,that): ... print self.a_method.__name__ Doing the above will obviously work! However, I don't want to have to use the name of the function in the print

Re: Converting existing module/objects to threads

2006-10-18 Thread John Henry
Making your code run in thread mode isn't the hard part. Just add this: import threading class subcontrollerThread(threading.Thread, subcontroller): def __init__(self,id,configurationFile): threading.Thread.__init__(self)

Re: How to use python in TestMaker

2006-10-18 Thread Gabriel Genellina
At Wednesday 18/10/2006 23:34, kelin,[EMAIL PROTECTED] wrote: Now I 'm learning python to do testing jobs, and want to use it in TestMaker. The problem is: I don't know how to use python in TestMaker. Just write python program in it or call .py files in it? I am really new about it and need

Re: Plotting histograms

2006-10-18 Thread [EMAIL PROTECTED]
Thanks for the replies ... its perfect now ... but just one more thing ... how can I plot another function(a semi circle) in the same histogram? thanks amit Robert Kern wrote: [EMAIL PROTECTED] wrote: Thanks Robert, My previous problem is solved(I was using 'from matplotlib.pylab

Re: Plotting histograms

2006-10-18 Thread Robert Kern
[EMAIL PROTECTED] wrote: Thanks for the replies ... its perfect now ... but just one more thing ... how can I plot another function(a semi circle) in the same histogram? Just call the appropriate plotting function after you plot the histogram. By default, the second plot will go into the

passing values to a program

2006-10-18 Thread [EMAIL PROTECTED]
I almost have this thing running like I want it to run but I want the values to come from the program that calls this one. There are two things I want to pass File_Name and CutString. They both need to go to loadFile routine of Class WordGrid to replace constants. Thank you for putting up

Compile python on Solaris

2006-10-18 Thread Martijn de Munnik
Hi, I want to compile python on my solaris 10 system (amd 64 bit). I did the following: ./configure --prefix=/opt/64/python make which resulted in this error: Include/pyport.h, line 730: #error: LONG_BIT definition appears wrong for platform (bad gcc/glibc config?). so I edited the file and

[ python-Bugs-1579477 ] Use flush() before os.exevp()

2006-10-18 Thread SourceForge.net
Bugs item #1579477, was opened at 2006-10-18 08:04 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1579477group_id=5470 Please note that this message will contain a full copy of

[ python-Bugs-1579796 ] Wrong syntax for PyDateTime_IMPORT in documentation

2006-10-18 Thread SourceForge.net
Bugs item #1579796, was opened at 2006-10-18 17:44 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1579796group_id=5470 Please note that this message will contain a full copy of

[ python-Bugs-1579370 ] Segfault provoked by generators and exceptions

2006-10-18 Thread SourceForge.net
Bugs item #1579370, was opened at 2006-10-17 19:23 Message generated for change (Comment added) made by mklaas You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1579370group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1579370 ] Segfault provoked by generators and exceptions

2006-10-18 Thread SourceForge.net
Bugs item #1579370, was opened at 2006-10-17 19:23 Message generated for change (Comment added) made by mklaas You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1579370group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1579370 ] Segfault provoked by generators and exceptions

2006-10-18 Thread SourceForge.net
Bugs item #1579370, was opened at 2006-10-18 04:23 Message generated for change (Comment added) made by loewis You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1579370group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1579931 ] not configured for tk

2006-10-18 Thread SourceForge.net
Bugs item #1579931, was opened at 2006-10-18 20:59 Message generated for change (Comment added) made by loewis You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1579931group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1579370 ] Segfault provoked by generators and exceptions

2006-10-18 Thread SourceForge.net
Bugs item #1579370, was opened at 2006-10-17 22:23 Message generated for change (Comment added) made by tim_one You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1579370group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1579370 ] Segfault provoked by generators and exceptions

2006-10-18 Thread SourceForge.net
Bugs item #1579370, was opened at 2006-10-17 19:23 Message generated for change (Comment added) made by mklaas You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1579370group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1579370 ] Segfault provoked by generators and exceptions

2006-10-18 Thread SourceForge.net
Bugs item #1579370, was opened at 2006-10-17 22:23 Message generated for change (Comment added) made by tim_one You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1579370group_id=5470 Please note that this message will contain a full copy of the comment

<    1   2   3