Eduardo O. Padoan wrote:
On Fri, May 16, 2008 at 6:40 PM, Gary Herron <[EMAIL PROTECTED]> wrote:
[EMAIL PROTECTED] wrote:
On 16 mai, 23:28, Hans Nowak <[EMAIL PROTECTED]> wrote:
Dan Upton wrote:
<>
...to solve the immediate problem:
for pid in procs_dict.keys():
And then, in Python3, k
On May 17, 3:06 am, George Sakkis <[EMAIL PROTECTED]> wrote:
> On May 16, 5:22 pm, "Dan Upton" <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > This might be more information than necessary, but it's the best way I
> > can think of to describe the question without being too vague.
>
> > The task:
>
> > I h
On May 16, 5:22 pm, "Dan Upton" <[EMAIL PROTECTED]> wrote:
> This might be more information than necessary, but it's the best way I
> can think of to describe the question without being too vague.
>
> The task:
>
> I have a list of processes (well, strings to execute said processes)
> and I want to
On May 16, 10:22 pm, "Dan Upton" <[EMAIL PROTECTED]> wrote:
> This might be more information than necessary, but it's the best way I
> can think of to describe the question without being too vague.
>
> The task:
>
> I have a list of processes (well, strings to execute said processes)
> and I want t
"Dan Upton" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| RuntimeError: dictionary changed size during iteration
If you do not actually need a dict, an explicitly managed list is an
[untested]alternative.
maxproc = #
procs = []
while True:
if len(procs) < maxproc: [populate p
On Fri, May 16, 2008 at 6:40 PM, Gary Herron <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
>>
>> On 16 mai, 23:28, Hans Nowak <[EMAIL PROTECTED]> wrote:
>>
>>>
>>> Dan Upton wrote:
>>>
for pid in procs_dict:
if procs_dict[pid].poll() != None
# do the counter updates
>
On May 16, 4:51 pm, Hans Nowak <[EMAIL PROTECTED]>
wrote:
> [EMAIL PROTECTED] wrote:
> > On 16 mai, 23:34, "[EMAIL PROTECTED]"
> > <[EMAIL PROTECTED]> wrote:
> >> On 16 mai, 23:28, Hans Nowak <[EMAIL PROTECTED]> wrote:
>
> >>> Dan Upton wrote:
> for pid in procs_dict:
> > (snip)
> >>> for p
[EMAIL PROTECTED] wrote:
On 16 mai, 23:34, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
On 16 mai, 23:28, Hans Nowak <[EMAIL PROTECTED]> wrote:
Dan Upton wrote:
for pid in procs_dict:
(snip)
for pid in procs_dict.keys():
I'm afraid this will do the same exact thing. A for loop on a d
[EMAIL PROTECTED] wrote:
On 16 mai, 23:28, Hans Nowak <[EMAIL PROTECTED]> wrote:
Dan Upton wrote:
for pid in procs_dict:
if procs_dict[pid].poll() != None
# do the counter updates
del procs_dict[pid]
The problem:
RuntimeError: dictionary changed size during iterati
On 16 mai, 23:34, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> On 16 mai, 23:28, Hans Nowak <[EMAIL PROTECTED]> wrote:
>
>
> > Dan Upton wrote:
> > > for pid in procs_dict:
(snip)
> >for pid in procs_dict.keys():
>
> I'm afraid this will do the same exact thing. A for loop on a dict
> itera
Dan Upton wrote:
This might be more information than necessary, but it's the best way I
can think of to describe the question without being too vague.
The task:
I have a list of processes (well, strings to execute said processes)
and I want to, roughly, keep some number N running at a time. If
On 16 mai, 23:28, Hans Nowak <[EMAIL PROTECTED]> wrote:
> Dan Upton wrote:
> > for pid in procs_dict:
> > if procs_dict[pid].poll() != None
> ># do the counter updates
> >del procs_dict[pid]
>
> > The problem:
>
> > RuntimeError: dictionary changed size during iteration
>
> I don't know i
Dan Upton wrote:
for pid in procs_dict:
if procs_dict[pid].poll() != None
# do the counter updates
del procs_dict[pid]
The problem:
RuntimeError: dictionary changed size during iteration
I don't know if the setup with the pids in a dictionary is the best way to
manage a pool of proc
This might be more information than necessary, but it's the best way I
can think of to describe the question without being too vague.
The task:
I have a list of processes (well, strings to execute said processes)
and I want to, roughly, keep some number N running at a time. If one
terminates, I
14 matches
Mail list logo