On 12/21/06, Keith Goodman <[EMAIL PROTECTED]> wrote:
> I have the following two lines in a for loop:
>
> if len(idx):
> x[idx,i] = x[idx,i-1]
>
> where idx is the output of a where statement.
>
> I need the 'if len(idx)' line to prevent an error when idx is empty.
>
> Would it make sense to al
I have the following two lines in a for loop:
if len(idx):
x[idx,i] = x[idx,i-1]
where idx is the output of a where statement.
I need the 'if len(idx)' line to prevent an error when idx is empty.
Would it make sense to allow
x[idx,i] = x[idx,i-1]
when idx is empty instead of raising an er