[IPython-dev] Small config puzzle
Sun Jun 3 18:26:46 CDT 2012
On Sun, Jun 3, 2012 at 1:37 PM, Min RK <email@example.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).
More information about the IPython-dev