|
|
|
|
|
by kbd
5429 days ago
|
|
FWIW all of those examples work in Python 3 as well. The language was extended with PEP 3132[1] to support "extended iterable unpacking" (I wish they would just call them "splats"). Python doesn't have a `values_at` method, though `map(hash.get, keys)` or `[hash[key] for key in keys]` isn't too bad. [1] http://www.python.org/dev/peps/pep-3132/ |
|