From: "Daniel Kluev" <dan.kl...@gmail.com> > On Tue, May 24, 2011 at 5:00 PM, Octavian Rasnita <orasn...@gmail.com> wrote: >> And you are telling that in Perl should be used an even more complicated and >> ugly syntax just for beeing the same as in Python just for showing that I am >> wrong, but I was comparing just the shortness and cleraness of the code. >> >> So, again, in Perl is just: >> >> %d = @l; > > Once again. Suppose we have array of key-value pairs (two-dimensional > array),
This is a forced example to fit the way Python can do it with a clean syntax, but I don't think there are cases in which somebody wants to create hashes/dictionaries where the key is not a plain string but an array. This is not a rare case, but a case that probably nobody needs, ever. Octavian -- http://mail.python.org/mailman/listinfo/python-list