On Sat, Nov 7, 2009 at 8:25 PM, Luis Alberto Zarrabeitia Gomez
<[email protected]> wrote:
>
> Quoting Bruno Desthuilliers <[email protected]>:
>
>> > Another situation where one may want to do this is if one needs to
>> > initialize a non-sparse array in a non-sequential order,
>>
>> Then use a dict.
>
> Ok, he has a dict.
>
> Now what? He needs a non-sparse array.

Let d be your dict.

Call the zeroeth place in your array d[0], the first d[1], the 10000th
d[100000].


-- 
AndrĂ© Engels, [email protected]
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to