
May 27, 2016
3:32 p.m.
On Fri, May 27, 2016 at 11:28 AM Zachary Ware < zachary.ware+pyideas@gmail.com> wrote:
Here's a crazy thought that might be best dismissed out of hand: what about extending 'from name import other_names' to accept any object for <name>? First try to get values via __getitem__() (possibly only for dict/dict subclasses?), next try getattr(), finally try to import the module and pull values from it as per usual.
Pros: - solves dict unpacking
Would it solve nested dict unpacking?