pombreda / pymel

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

stubs - handling of "from mymodule import *" overly aggressive #145

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, the parser for the stubs file does a

from mymodule import *

whenever ANY object from mymodule is found in another module.  This works,
but obviously leaves the stub module with a lot more items than necessary,
and makes autocompletion slower.

Made aborted attempt to override __import__ function, to detect imports...
however, while it detects

from mymodule import MyClass

it fails to detect 

from mymodule import *

Solution would probably be to see if everything (or above a certain
percentage?) in the one module is in the other module before using import
*; can use sepecific from imports for others.

Original issue reported on code.google.com by elron...@gmail.com on 6 Jan 2010 at 11:38

GoogleCodeExporter commented 9 years ago

Original comment by elron...@gmail.com on 6 Jan 2010 at 11:39