[Tutor] how to use
anil maran
anilmrn at yahoo.com
Sat Aug 5 14:55:08 CEST 2006
the program has several groups
i hav a table with titles
and contents are in different table content_table
each title -> is title_id in content_table
so every time i display a group, i have to select title and then
select all messagesw with title_id
now the problem is, I have to display more than one group in a single
page in cheetah,
so after displaying the title, i have to now choose the message to display
since i have a list of [] of messages
i need to index into them
so i thought i will make them return a dictionary indexed with URL
which is unique
thanks
> anil maran wrote:
> > list comprehensions to return a dictionary
>
> A list comprehension creates a list. Can you explain why you want
> this?
>
> Kent
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060805/08b435be/attachment.html
More information about the Tutor
mailing list