On Tue, Feb 26, 2013 at 9:34 AM, Colin J. Williams <c...@ncf.ca> wrote:
> Perhaps it's becaoue (teild count) is a statement.  Statements do not return
> a value.

yield is a bit of an odd duck in that it's both a statement and an
expression.  Compare:

http://docs.python.org/3/reference/simple_stmts.html#the-yield-statement

http://docs.python.org/3/reference/expressions.html#yieldexpr
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to