Dictionary from list?
Rainer Deyke
root at rainerdeyke.com
Tue Oct 23 16:12:51 EDT 2001
"Huaiyu Zhu" <huaiyu at gauss.almadan.ibm.com> wrote in message
news:slrn9tbier.135.huaiyu at gauss.almadan.ibm.com...
> There have been several good arguments about why [(k,v), (k,v) ...] is
> better than [k, v, k, v, ...]. Here are some more observations:
<snip arguments>
Add to that:
- When dealing with '[k, v, k, v, ...]' sequences, it is easy to
accidentally mess up the alignment and create a '[k, k, v, k, v, ...]'
sequence instead (with disasterous results).
--
Rainer Deyke (root at rainerdeyke.com)
Shareware computer games - http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor
More information about the Python-list
mailing list