The following forum message was posted by epdowd at 
http://sourceforge.net/projects/pydev/forums/forum/293649/topic/3793026:

Thanks for the prompt response!
You\'re correct.   It was 3.0.  Changing it to 2.6 eliminates the error 
indication on the \"print\" statement. 

Now to a more complex example that\'s causing another spurious (not surious) 
line to be flagged as an error by PyDev:
[code]
from javax.swing import JFrame
class MyJFrame(JFrame):
    def __init__(self, *args, **x):
        JFrame.__init__(self, *args, **x)
[/code]

The last line (line 10: JFrame.__init__ ....) is flagged with the error:
[code]
Description     Resource        Path    Location        Type
Undefined variable from import: __init__        try_jframe.py   /TryJ2/src      
line 10         PyDev Problem
[/code]

I also have  \"if __name__ == \"main\":  logic that creates an instance of 
MyJFrame, and sets is \"visible\".  Running the file produces the expected 
(JFrame) getting display without any errors.

So, once again, I\'ve managed to get an error indicator by PyDev, yet Jython 
runs the code without error.

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to