Please improve these comprehensions (was meaning of [ ])

Gregory Ewing greg.ewing at canterbury.ac.nz
Wed Sep 6 06:59:37 EDT 2017


Seems to me you're making life difficult for yourself (and
very inefficient) by insisting on doing the whole computation
with sets. If you want a set as a result, it's easy enough
to construct one from the list at the end.

-- 
Greg



More information about the Python-list mailing list