<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 20 May 2013 18:11, Aaron Meurer <span dir="ltr"><<a href="mailto:asmeurer@gmail.com" target="_blank">asmeurer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div id=":16b" style="overflow:hidden">On a somewhat unrelated note, if __all__ is supposed to represent<br>
those things in a module that are public API, would it make sense for<br>
IPython's tab completer to respect this, so that<br>
<br>
from module import <TAB><br>
<br>
only showed those things in module.__all__, if module.__all__ is<br>
defined?  To me, that would go a long way to solidifying this<br>
definition of __all__ in people's minds, or at least people like me<br>
who use IPython to prototype code that uses library code.</div></blockquote></div><br></div><div class="gmail_extra">There's an option for this (c.IPCompleter.limit_to__all__), but it defaults to False - I think the rationale is that you may want to use 'from foo import bar' to explicitly import something that isn't included in __all__.<br>

<br></div><div class="gmail_extra">Thomas<br></div></div>