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 - A clarification of the type of a name that is imported
Summary: A clarification of the type of a name that is imported
Status: CLOSED WONTFIX
Alias: None
Product: python
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-13 11:35 UTC by erdincyilmazel
Modified: 2017-06-23 08:06 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.