John Machin wrote:

> Thanks, that's indeed faster than array(t, [v]*n) but what I had in
> mind was something like an additional constructor:
> 
> array.filledarray(typecode, repeat_value, repeat_count)
> 
> which I speculate should be even faster.

before you add a new API, you should probably start by borrowing the 
repeat code from Object/stringobject.c and see if the speedup is good 
enough.

</F>

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to