On 01/26/2015 10:40 AM, Paul Moore wrote:

> There *are* some nastily non-intuitive corner cases (for example, if
> from_env={'a':12} and from_config={'a':13}, I don't have any sort of
> intuition as to what a would be in f(**from_env, **from_config). I'd
> go with 12 because the PEP links multiple **-unpackings with
> collections.ChainMap, but I wouldn't dare rely on that guess).

In the your example

  from_env = {'a': 12}
  from_config = {'a': 13}

  f(**from_env, **from_config)

I would think 'a' should be 13, as from_config is processed /after/ from_env.

So which is it?

--
~Ethan~

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to