On Nov 1, 3:33 pm, Terry Reedy wrote:

> > for obj, val in zip(Orders, locus):
> > obj.locus = val
>
> > I'm not sure how worthwhile it is converting the above to a list
> > comprehension (when the list would just be thrown away). Having said
> > that the call to zip creates an unnecessary list.
>
> Not in Py 3

Thanks for that tip, this works well in Py3.

-- Gnarlie
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to