pydev eclipse configuration for __builtins__?
suppose on init I've install my function under开发者_开发百科 builtins then throughout my project I can access it directly that function, no need to import, but how can I tell this to eclipse - so it should not show RED Error "undefined variable"
__builtins__['_'] = gettext.gettext
Look in Preferences -> PyDev -> Editor -> Code Analysis. There's a bunch of options for adjusting code analysis in there.
On my PyDev, _
is already in the Consider the following names as globals list though - which version of PyDev do you have?
精彩评论