[IPython-dev] Small config puzzle

Brian Granger ellisonbg at gmail.com
Sun Jun 3 19:34:51 EDT 2012

I think that given our config system, the right solution is to move
the keys of rc to be top-level config attributes.

On Sun, Jun 3, 2012 at 4:26 PM, Fernando Perez <fperez.net at gmail.com> wrote:
> On Sun, Jun 3, 2012 at 1:37 PM, Min RK <benjaminrk at gmail.com> wrote:
>> Overridden. The only thing you can do in config is simple attribute assignment. It doesn't do anything fancy, so c.InlineBackend.rc = foo is the same as doing the actual assignment to the real object.
>> I don't know if you recall, but we discussed an API in your office to address this sort of thing for container traits, where we had an idea like:
>> c.InlineBackend._rc_update = dict(foo=bar)
>> for dicts or
>> c.Foo._bar_extend = [more, entries]
>> for lists.
> Yup, now I remember, and it might have been triggered by me trying to
> mess around with this same guy. Though I still worry that it may be a
> lot of special-case knowledge to expect users to remember...  I feel
> like we haven't quite hit completely the sweet spot with the api for
> this part (though by and large it works very well, given how complex
> the problem it's faced with is).
> Cheers,
> f
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev

Brian E. Granger
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu and ellisonbg at gmail.com

More information about the IPython-dev mailing list