
May 27, 2016
4:42 p.m.
On 27 May 2016 at 17:17, Steven D'Aprano <steve@pearwood.info> wrote:
Open questions:
- Is it worth making this a dict method? +1 from me.
Quite possibly, but maybe a 3rd-party function implementing this would be a worthwhile test of how useful it is in practice (although conceded, a big part of its usefulness would be that it doesn't need a dependency).
- Any other functionality?
Nested unpacking: location = = { 'name': 'The north pole', 'position': { 'x': 0, 'y': 0 }} location_name, x, y = location.getvalues('name', 'position.x', 'position.y') Paul.