list comprehension

Bruno Desthuilliers onurb at xiludom.gro
Mon Jul 3 12:17:18 EDT 2006


a wrote:
> hi simon thanks for your reply
> what if i want to do this
> 	        feed_list=[]
> 		feed_id=[]
> 		for ix in feeds_list_select:
> 			global feeds_list
> 			global feeds_id

Learn how to avoid globals first.


-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list