Python Oddities
I’ve got one!  First, some context:<p>This is normal assignment unpacking:<p><pre><code>    &gt;&gt;&gt; a, b = 1, 2
    &gt;&gt;&gt; [a, b]
    [1, 2]
</code></pre>
(Mismatch gives errors)<p><pre><code>    &gt;&gt;&gt; a, b = [1]
    ValueError
    &gt;&gt;&gt; a, b = [1, 2, 3]
    ValueError
</code></pre>
Extra parentheses works too:<p><pre><code>    &gt;&gt;&gt; (a, b) = [2, 3]
    &gt;&gt;&gt; [a, b]
    [2, 3]
</code></pre>
Unpacking a single value:<p><pre><code>    &gt;&gt;&gt; (a,) = [4]
    &gt;&gt;&gt; a
    4
</code></pre>
Works without parentheses too:<p><pre><code>    &gt;&gt;&gt; a, = [5]
    &gt;&gt;&gt; a
    5
</code></pre>
No values does not work:<p><pre><code>    &gt;&gt;&gt; , = []
    SyntaxError
</code></pre>
Neither does empty parentheses:<p><pre><code>    &gt;&gt;&gt; () = []
    SyntaxError
</code></pre>
Now, the oddity:<p><pre><code>    &gt;&gt;&gt; [] = []
    &gt;&gt;&gt; 
</code></pre>
This raises no error!  Neither does this:<p><pre><code>    &gt;&gt;&gt; [] = ()
    &gt;&gt;&gt;</code></pre>