A dictionary list?
Eli Pollak
eli at elipollak.com
Tue Dec 23 23:55:37 EST 2003
Do you mean you want an iterable dictionary ?
Such as in php :
$arr = array()
$arr[0] = 'a';
$arr[1] = 'b';
$arr['somestr'] = 'str';
$arr[2] = 'c';
foreach($arr as $element)
print $element
which prints
'a','b','str','c'
Or do you mean something else ?
Cheers,
Eli
"Steve" <nospam at nopes> wrote in message
news:3fe91593 at clarion.carno.net.au...
> Hi,
>
> How can I create a list of a dictionary? (in other words, I need to
> create an array of a dictionary). Please help!
>
> Steve
More information about the Python-list
mailing list