Yield multiple values
<p>Can't we yield more than one value in the python generator functions?</p>

<p>Example,</p>

<pre><code>In [677]: def gen():
   .....:     for i in range(5):
   .....:         yield i, i+1
   .....:         

In [680]: k1, k2 = gen()
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
&lt;ipython-input-680-b21f6543a7e9&gt; in &lt;module&gt;()
----&gt; 1 k1, k2 = a()

ValueError: too many values to unpack
</code></pre>

<p>This works as follows: </p>

<pre><code>In [678]: b = a()

In [679]: list(b)
Out[679]: [(0, 1), (1, 2), (2, 3), (3, 4), (4, 5)]
</code></pre>

<p>Same results even when I do this:</p>

<pre><code>In [692]: def a():
    for i in range(5):
        yield i
        yield i+1
</code></pre>

<p>Thanks.</p>
