Newbie help with array handling

rishi pathak mailmaverick666 at gmail.com
Thu Apr 12 04:12:02 EDT 2007


do something like this
{keyvalue1:[ value1, value2, value3],keyvalue2:[value1,value2,
value3],keyvalue3,:[value1,value2,value3]}

On 12 Apr 2007 00:58:54 -0700, loial <admin at loial.co.uk> wrote:
>
> I am new to python and am converting an awk script to python
>
> I need to store some data in an array/table of some form
>
> keyvalue1, value1, value2, value3
> keyvalue2, value1,value2, value3
> keyvalue3, value1,value2,value3
> etc
>
> I will later need to sort in keyvalue order and also need to be able
> to check if a key already exists
>
> It is not clear how to do this in python. All the examples I see have
> just a key and a single value
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
Regards--
Rishi Pathak
National PARAM Supercomputing Facility
Center for Development of Advanced Computing(C-DAC)
Pune University Campus,Ganesh Khind Road
Pune-Maharastra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070412/5a495f85/attachment.html>


More information about the Python-list mailing list