thecocce / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

Auto completion for imported modules from sys.path #361

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. No auto completion, code navigation support from imported objects.
2. import a module from sys.path as object = __import__('modulename')
3. object attributes and functions are not displayed for auto completion.
4. find definition is currently not supported for imported module objects 
including from sys.path

What is the expected output? What do you see instead?
no auto completion for imported module object attributes and functions
no find definition support for imported module object attributes and 
functions

What version of the product are you using? On what operating system?
1.9.9.7

Original issue reported on code.google.com by shrihar...@gmail.com on 12 Apr 2010 at 2:35

GoogleCodeExporter commented 9 years ago
Offering completion in the editor for modules imported with __import__ is in 
general very hard.  Here is a contrived example

a = "s"+"y"+"s"
sys = __import__(a)
sys.

Autocompletion is available thought for regular imports
import sys
sys.

Original comment by pyscripter on 11 Aug 2010 at 5:55