[Python-ideas] Replace option set/get methods through the standard library with a ChainMap; add a context manager to ChainMap

Oscar Benjamin oscar.j.benjamin at gmail.com
Thu Sep 12 12:24:05 CEST 2013

On 12 September 2013 11:14, Neil Girdhar <mistersheik at gmail.com> wrote:
> Thank you.  I will ask there about adding numpy context managers.  However,
> the extra member function to ChainMap to use it as a context manager would
> be a question for this mailing list, right?

Perhaps you could spell out that part of the idea in more detail then.
Why in particular would it need to be a ChainMap and not a regular
dict? Does the method return a new ChainMap instance? What would be
seen by other code that holds references to the same ChainMap?


More information about the Python-ideas mailing list