[IPython-dev] Flat is better than nested
Stéfan van der Walt
stefan at sun.ac.za
Fri May 17 03:44:18 EDT 2013
On Fri, May 17, 2013 at 2:51 AM, Brian Granger <ellisonbg at gmail.com> wrote:
> During that discussion we ended up talking about the deep nesting that
> we have in IPython.frontend
>
> Deep inside the notebook frontend, we end up with imports of the sort:
>
> IPython.frontend.html.notebook.handlers
>
> The qt frontend has similarly deep nesting.
>
> To solve this problem, we decided to flatten this out a bit. Here is
> what we decided:
>
> IPython.frontend.qt -> IPython.qt
> IPython.frontend.html.notebook -> IPython.html
> IPython.frontend.terminal -> IPython.terminal
That seems like a minor saving when measured against the loss of
structure. When I see "ipython.frontend.qt" I know exactly what you
mean, whereas "IPython.qt" doesn't evoke anything specific. Isn't the
nesting problem rather deeper down, i.e. under qt, html and terminal?
Stéfan
More information about the IPython-dev
mailing list