◐ Shell
clean mode source ↗

Message 373432 - Python tracker

PR 15138 always adds keywords to the big list for the current module.  They are also normally present in the small list, when it only excludes '_' names.  But if the module being edited contains '__all__', the small list, which is the first list presented, is currently just __all__.  This excludes builtins and now keywords and possibly non-_ names defined in the module.  I think this restriction is a mistake; __all__ defines a limited external view of the module.  It is not intended to restrict the names used in the module.  I will remove the restriction (and a crash bug it contains) in a partly completed PR for #37766.