Migrating to Python 3 with pleasure
I've been toying around with Python 3 and using it for most of my personal/hack projects, but I somehow missed the unpacking improvements: <a href="https://www.python.org/dev/peps/pep-0448/" rel="nofollow">https://www.python.org/dev/peps/pep-0448/</a><p>In particular, being able to create an updated copy of a dict with a single expression is pretty cool:<p><pre><code>    return {**old, 'foo': 'bar'}
    
    # Old way
    new = old.copy
    new['foo'] = ['bar']
    return new</code></pre>