This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 153134

Summary: A clarification of the type of a name that is imported
Product: python Reporter: erdincyilmazel <erdincyilmazel>
Component: EditorAssignee: Torbjorn Norbye <tor>
Status: CLOSED WONTFIX    
Severity: blocker CC: Jenselme
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description erdincyilmazel 2008-11-13 11:35:42 UTC
As a new python learner I am easily getting confused about the type of the item that is imported in a python source code. 

For instance an import statement like "import item.subitem.subsubitem" may be importing a package or a module.
Additionally in an import statement like "from package import item" the item can be either a submodule (or subpackage)
of the package, or some other name defined in the package, like a function, class or variable according to the Python
tutorial.

If the IDE can somehow tell me the if the imported item is a function, class, module or package It would be very nice. A
window like the Navigator or maybe different color schemes for different types in the editor is what I am talking about.

Thank you
Comment 1 Jenselme 2017-06-22 19:13:33 UTC
This is how Python and most dynamic languages work. We may address this later when we support the new type annotations for Python or improve jedi support.

Closing this for now.
Comment 2 Jiri Kovalsky 2017-06-23 08:06:29 UTC
Thanks for your evaluation Julien. Reporter, if you think your issue is still valid and needs to be addressed, don't hesitate to reopen it with additional information. Closing for now.