开发者

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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜