Re: Listing children processes

2012-02-28 Thread Mihai Badoiu
Looked at that before. psutil doesn't do children. --mihai On Tue, Feb 28, 2012 at 4:35 PM, Chris Rebert wrote: > On Tue, Feb 28, 2012 at 10:33 AM, Mihai Badoiu wrote: > > I'm trying to compute the total CPU load of an external process and it's > &g

Listing children processes

2012-02-28 Thread Mihai Badoiu
e children processes? thanks, --mihai -- http://mail.python.org/mailman/listinfo/python-list

pipe into preallocated buffer?

2012-01-04 Thread Mihai Badoiu
is there a way to pipe directly into a preallocated buffer? (subprocessing.pipe.stdout) thanks, --mihai -- http://mail.python.org/mailman/listinfo/python-list

Re: Multiprocessing: killing children when parent dies

2011-12-07 Thread Mihai Badoiu
I like 2) the most. I do have access to the child. The child is a process started with multiprocessing.Process(function). How do I _not_ set an SID? thanks, --mihai On Wed, Dec 7, 2011 at 2:50 PM, Dan Stromberg wrote: > On 12/7/11, Mihai Badoiu wrote: > > ok, so the code is somet

Re: Multiprocessing: killing children when parent dies

2011-12-07 Thread Mihai Badoiu
dea on how to make process B die when process A gets killed by the "kill" command? thanks, --mihai On Sat, Dec 3, 2011 at 4:01 AM, Jack Keegan wrote: > I think the OP meant when the parent gets killed (by ctrl+c or similar), > not deleted. At least that's what I think

Multiprocessing: killing children when parent dies

2011-12-02 Thread Mihai Badoiu
In the multiprocessing module, on a Process p, by just doing p.daemon=1 before p.start(), we can make the child die when the parent exits. However, the child does not die if the parent gets killed. How can I make sure the child die when the parent gets killed? thanks, --mihai -- http

Resources consumed by parent

2011-11-18 Thread Mihai Badoiu
How do I get the resources consumed by the parent process? getrusage() in the resource module seems to work only for self or the children processes. thanks, --mihai -- http://mail.python.org/mailman/listinfo/python-list

Re: Learning Python

2011-08-24 Thread Muresan Alexandru Mihai
http://www.youtube.com/watch?v=tKTZoB2Vjuk On Wed, Aug 24, 2011 at 11:53 AM, becky_lewis wrote: > http://diveintopython.org/ is where you can get an online version of > the dive into python book. I found it useful when learning python :) > > Becky Lewis > > On Aug 24, 3:46 am, User wrote: > > H

Re: reading and writing files

2011-08-23 Thread Muresan Alexandru Mihai
If you need an int isn't better to use input() instead of raw_input() ? On Tue, Aug 23, 2011 at 10:00 PM, Adrián Monkas wrote: > Hi. > I`ve been trying to copy a long text from one file to another but it always > copied me just a small part. > I would be glad if you can help me or explain which i

interactive plots

2011-07-06 Thread Mihai Badoiu
How do I do interactive plots in python? Say I have to plot f(x) and g(x) and I want in the plot to be able to click on f and make it disappear. Any python library that does this? thanks, --mihai -- http://mail.python.org/mailman/listinfo/python-list

Re: Terrible FPU performance

2011-04-27 Thread Mihai Badoiu
x27;s have different results for exactly the same asm code. --mihai On Tue, Apr 26, 2011 at 11:06 PM, David Cournapeau wrote: > On Wed, Apr 27, 2011 at 4:14 AM, Dan Goodman > wrote: > > Hi, > > > > On 26/04/2011 15:40, Mihai Badoiu wrote: > >> I have terrible per

Re: Terrible FPU performance

2011-04-26 Thread Mihai Badoiu
Yes, running on pure python has the same issue (but overall only a factor 3 away): i = 0 x = 1.0 while i < 1000: x *= 0.8 #x += 0.01 i += 1 print x On Tue, Apr 26, 2011 at 1:44 PM, Philip Semanchuk wrote: > > On Apr 26, 2011, at 1:34 PM, Mihai Badoiu wrote: > >

Re: Terrible FPU performance

2011-04-26 Thread Mihai Badoiu
Already did. They suggested the python list, because the asm generated code is really correct and the problem might be with the python running on top. On Tue, Apr 26, 2011 at 1:04 PM, Chris Colbert wrote: > > > On Tue, Apr 26, 2011 at 8:40 AM, Mihai Badoiu wrote: > >>

Terrible FPU performance

2011-04-26 Thread Mihai Badoiu
Hi, I have terrible performance for multiplication when one number gets very close to zero. I'm using cython by writing the following code: cdef int i cdef double x = 1.0 for 0 <= i < 1000: x *= 0.8 #x += 0.01 print x This code runs much much slower (20+ time

Re: python variable assignement

2007-09-24 Thread mihai
checked the values returned by select_point() and are different in all the cases, so the problem is with that variables names/values. Thank you again, Mihai. -- http://mail.python.org/mailman/listinfo/python-list

python variable assignement

2007-09-24 Thread mihai
is the same, and is defined using PyTypeObject structure. I hope I was explicit. Thank you in advance, Mihai. -- http://mail.python.org/mailman/listinfo/python-list