#745 Import redefinition bug

1.3.18
closed-fixed
nobody
None
5
2009-12-09
2008-07-01
Arve Knudsen
No

Using PyDev 1.3.18, there seems to be a bug in the import redefinition algorithm. If I import two modules in a package, PyDev warns me that there is an import redefinition of the package. Ex.:
import package.a
import package.b

Discussion

  • Fabio Zadrozny
    Fabio Zadrozny
    2008-07-13

    Logged In: YES
    user_id=617340
    Originator: NO

    Actually, that's a correct warning... if you do "import package.a", you've just added to your namespace the 'package' and 'package.a' modules, so, if you later do "import package.b", you'll be redefining the 'package' token previously imported.

     
  • Fabio Zadrozny
    Fabio Zadrozny
    2008-07-13

    • status: open --> closed-works-for-me
     
  • Arve Knudsen
    Arve Knudsen
    2008-07-14

    • status: closed-works-for-me --> open-works-for-me
     
  • Arve Knudsen
    Arve Knudsen
    2008-07-14

    Logged In: YES
    user_id=1522083
    Originator: YES

    But why on earth would one want to be warned about it?? It's totally intentional behaviour. Show me how would you achieve the same thing without receiving warnings then.

     
  • Fabio Zadrozny
    Fabio Zadrozny
    2009-12-09

    Fixed for 1.5.2

    Git

    %h 2328941
    %ct 1260359797

     
  • Fabio Zadrozny
    Fabio Zadrozny
    2009-12-09

    • status: open-works-for-me --> closed-fixed