[pydev - Users] Code Analysis and Globals

View: New views
2 Messages — Rating Filter:   Alert me  

[pydev - Users] Code Analysis and Globals

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=7599752
By: nicolas79k

I have a python project where some globals are set when the program starts.
How can I teach pydev's source code analysis that these globals are set in my
project even when they are not set in the current source file?

I see that I can set forced builtins - but if I add my global objects there,
they are recognized by code completion but still produce errors in code analysis.
Did I misunderstood forced builtins? Let me give you a short example:

First File (called first):

class DEMO:
    pass
import __builtin__
__builtin__.__dict__['DEMO'] = DEMO


Second file (called later):
...
demo = DEMO()

How can I tell pydevs source code analysis that DEMO exists as a global in the
current project and where to look for DEMO (without an actual import statement
in the second file)?

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=293649

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Pydev-users mailing list
Pydev-users@...
https://lists.sourceforge.net/lists/listinfo/pydev-users

[pydev - Users] RE: Code Analysis and Globals

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=7600134
By: fabioz

You have to ad it at window > preferences> pydev > pydev extensions > code analysis
> undefined.

Cheers,

Fabio

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=293649

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Pydev-users mailing list
Pydev-users@...
https://lists.sourceforge.net/lists/listinfo/pydev-users