Dictionary from list?
Marcin 'Qrczak' Kowalczyk
qrczak at knm.org.pl
Sat Oct 27 12:21:19 EDT 2001
Tue, 23 Oct 2001 19:49:37 +0000 (UTC), Huaiyu Zhu <huaiyu at gauss.almadan.ibm.com> pisze:
> There have been several good arguments about why [(k,v), (k,v) ...] is
> better than [k, v, k, v, ...]. Here are some more observations:
Here is why Perl does it its way: it didn't have nested data structures
at the time this was designed! You could only put scalars in a list,
i.e. strings or numbers. (You still can, but scalars now include
references to arrays.)
--
__("< Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
\__/
^^ SYGNATURA ZASTĘPCZA
QRCZAK
More information about the Python-list
mailing list