need dict to maintain order
rihad at mail.ru
Fri Jan 18 17:58:15 CET 2002
On Fri, 18 Jan 2002 11:39:36 -0500, "Steve Holden"
<sholden at holdenweb.com> wrote:
>Rather than using a dictionary and then (presumably) a while loop until the
>dictionary is empty, consider setting up a list or tuple of tuples, such as
> links = (('index.html', 'Home'), ('file0.html', 'Some foo'))
>The you can use
> for link, caption in links:
> # generate nav bar line from link and capion
Thanks a lot! It works like a charm...
More information about the Python-list