2

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
4

1 回答 1

2

查看首选项 -> PyDev -> 编辑器 -> 代码分析。那里有很多用于调整代码分析的选项。

在我的 PyDev 上,_已经在将以下名称视为全局列表中 - 你有哪个版本的 PyDev?

于 2010-07-29T05:43:20.947 回答