[Python-3000] Using *a for packing in lists and other places

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Mar 16 02:07:30 CET 2008


Thomas Wouters wrote:
> 
> I do not think 
> collecting a (potentially ever-growing) list of results is really the 
> right thing to do, do you?

For those cases where it is, perhaps one should be
able to write

   [yield *it]

and have it treated as a kind of list comprehension.

-- 
Greg


More information about the Python-3000 mailing list