A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ipython/ipython/issues/1571/ below:

module member autocomplete should respect __all__ · Issue #1571 · ipython/ipython · GitHub

If a module defines __all__ then tab-completing a module member should present a list of only the things in __all__ instead of all the members of the module.

eg if module.py has:

import sys

__all__ = ['foo']

def foo():
    pass

def bar():
    pass

and in the ipython console I type

module[tab]

currently I get module.sys, module.foo, and module.bar as options. I think it would be preferable if only module.foo was given as an option.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4