I still don't understand what you are trying to do. Can you post a short example of the data you have and the dictionary you would like to create from it?
Kent anil maran wrote: > 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 - [email protected] > > http://mail.python.org/mailman/listinfo/tutor > > ------------------------------------------------------------------------ > Yahoo! Messenger with Voice. Make PC-to-Phone Calls > <http://us.rd.yahoo.com/mail_us/taglines/postman1/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com> > > to the US (and 30+ countries) for 2ยข/min or less. > ------------------------------------------------------------------------ > > _______________________________________________ > Tutor maillist - [email protected] > http://mail.python.org/mailman/listinfo/tutor > _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
