Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Ok, as pointed, your code is too dynamic for this... PyDev will only analyze your own code statically (i.e.: code that lives inside your project).</p> <p>Still, there are some alternatives there:</p> <p><strong>Option 1:</strong></p> <p>You can force PyDev to analyze code that's in your library (i.e.: in site-packages) dynamically, in which case it could get that information dynamically through a shell.</p> <p>To do that, you'd have to create a module in site-packages and in your interpreter configuration you'd need to add it to the 'forced builtins'. See: <a href="http://pydev.org/manual_101_interpreter.html" rel="nofollow">http://pydev.org/manual_101_interpreter.html</a> for details on that.</p> <p><strong>Option 2:</strong></p> <p>Another option would be putting it into your predefined completions (but in this case it also needs to be in the interpreter configuration, not in your code -- and you'd have to make the completions explicit there anyways). See the link above for how to do this too.</p> <p><strong>Option 3:</strong></p> <p>Generate the actual code. I believe that Cog (<a href="http://nedbatchelder.com/code/cog/" rel="nofollow">http://nedbatchelder.com/code/cog/</a>) is the best alternative for this as you can write python code to output the contents of the file and you can later change the code/rerun cog to update what's needed (if you want proper completions without having to put your code as it was a library in PyDev, I believe that'd be the best alternative -- and you'd be able to grasp better what you have as your structure would be explicit there).</p> <p>Note that cog also works if you're in other languages such as Java/C++, etc. So, it's something I'd recommend adding to your tool set regardless of this particular issue.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload