Re: How to increase the speed of this program?
- From: Fredrik Lundh <fredrik@xxxxxxxxxxxxxx>
- Date: Tue, 28 Nov 2006 13:01:56 +0100
John Machin wrote:
I'm extremely agnostic about the spelling :-) IOW I'd be very glad of
any way [pure Python; e.g. maintaining my own version of the array
module doesn't qualify] to simply and rapidly create an array.array
instance with typecode t and number of elements n with each element
initialised to value v (default to be the zero appropriate to the
typecode).
array(t, [v])*n
</F>
.
- Follow-Ups:
- Re: How to increase the speed of this program?
- From: John Machin
- Re: How to increase the speed of this program?
- From: Peter Otten
- Re: How to increase the speed of this program?
- References:
- How to increase the speed of this program?
- From: HYRY
- Re: How to increase the speed of this program?
- From: Leo Kislov
- Re: How to increase the speed of this program?
- From: Peter Otten
- Re: How to increase the speed of this program?
- From: Peter Otten
- Re: How to increase the speed of this program?
- From: John Machin
- How to increase the speed of this program?
- Prev by Date: Re: How to increase the speed of this program?
- Next by Date: Re: Modifying every alternate element of a sequence
- Previous by thread: Re: How to increase the speed of this program?
- Next by thread: Re: How to increase the speed of this program?
- Index(es):
Relevant Pages
|