You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pyrepl autocomplete from x import <tab> to only display public members #149167
When using autocomplete in the REPL, from x import <tab> will show all non-underscore prefixed members. This is a dir-like behavior that is useful to inspect and understand what can be imported.
However, this mechanism isn't filtering on __all__ of the module and can yield a long list of non-useful candidates to autocomplete. Two examples shown below, pathlib and collections.abc.
The feature request is that when a user enters from x import <tab> only the candidates defined in __all__ are listed.
Activity
IvyXu420 commentedon Apr 30, 2026
edvilme commentedon Aug 21, 2026
Hi. I would love to work on this and submit a PR :)
Merge branch 'main' into pythongh-149167-pyrepl-module-complete