Menu

#1137 Prefer local imports over global ones in autocomplete

open
Editor (491)
5
2010-04-26
2010-04-26
Alexey
No

At the moment all autocomplete names are sorted by name. But it make some difficulties in suck situation:

For example:
1) we have package "my_cool_package" with __version__ constant, defined in __init__.py
2) I want to try to use __version__ in some function's code in this package.
3) I'm trying to type "__version__" and get tonns of autocomplete options. Where my package will be located somewhere inside this big mess.

It will be better if local imports (from the same project or from the same package) will be located first.

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.