Charles Merriam wrote:
> -1.
> 
> While the syntax has a basic beauty, it requires too much odd explanation.

On further reflection, I think I would only be in
favour of 'yield *it' if it permitted an optimisation
allowing it to run more efficently than an explicit
for-loop.

In the absence of any such optimisation, writing the
for-loop out explicitly seems preferable. Not only
does it make it perfectly clear what is being done,
it avoids hiding the cost of the for-loop behind a
deceptively compact piece of syntax.

-- 
Greg
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to