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 155849 - Multiple imports for the same
Summary: Multiple imports for the same
Status: CLOSED WONTFIX
Alias: None
Product: python
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-19 16:58 UTC by richard_1383hot
Modified: 2017-06-23 08:05 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description richard_1383hot 2008-12-19 16:58:59 UTC
Multiple imports for the same

For example:
In mi file forms.py

from directaerp.establecimiento.models import *

...
..

If I want use a class that is into directaerp/establecimiento/models.py called ConfiguracionPago(), I select it from the
contextual list:
Ex:
configuracion_pago = ConfiguracionPago()

Then in my imports statement is add a new import line:
from directaerp.establecimiento.models import ConfiguracionPago
from directaerp.establecimiento.models import *

The new import line its no necesary.

Please, also consider when the import is like:
from models import *
This form also is valid too in python language
Comment 1 Jenselme 2017-06-22 19:03:04 UTC
I think this can be reported by a linter. In all cases, you should avoid star imports. I don't think we will ever to something about this. Closing this.
Comment 2 Jiri Kovalsky 2017-06-23 08:05:41 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.