Hacker News new | ask | show | jobs
by andreareina 1460 days ago
Python has tuple destructuring, which can be used with dict.items(). I'm talking about being able to destructure by name not position:

    name, address = some_dict
You could fake it if you could ask for a tuple of specific entries:

    name, address = some_dict.pluck("name", "address")