Fabio Zadrozny wrote:

Well, remind that things are in a 'shared' interpreter for all scripts for an editor, so, if you had made some from java.lang import * in one script, all would have access to it (not something you'd like to rely on).


Fabio:

As I understand it importing something that has already been imported does not really do anything, unlike reload.

So, is there really any harm in having duplicate imports, and do you really need the guard around this import?

if False:
    from org.python.pydev.editor import PyEdit [EMAIL PROTECTED]
    cmd = 'command string'
    editor = PyEdit


Don.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
pydev-code mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-code

Reply via email to