[Python-ideas] Unpacking a dict

Greg Ewing greg.ewing at canterbury.ac.nz
Fri May 27 21:37:31 EDT 2016

Zachary Ware 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>?

 > - has the potential to be confusing: "from name import other_name"
 > will do different things depending on whether "name" is already bound
 > in current scope

Indeed. It would be better to have some syntactic marker to distinguish
this new kind of import from a normal import.


More information about the Python-ideas mailing list