On 5/23/2011 1:31 AM, Octavian Rasnita wrote:

I am talking about a simple way of creating a hash/dict from an array,
which is so simple that there should be really a single way to do it, or
very few.

Again, Python has such:

>>> dict([['one',1],['two', 2]])
{'two': 2, 'one': 1}

--
Terry Jan Reedy

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

Reply via email to