日食的PyDev自动建议不要在某些情况下工作 [英] Eclipse pydev auto-suggestions don't work in some cases

查看:235
本文介绍了日食的PyDev自动建议不要在某些情况下工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题可能是愚蠢的,我希望有人已经成功地解决了这个问题。

My question is probably stupid and I hope somebody has succeeded in solving this issue.

有时候,我不能看到自动完成框右侧的建议(Eclipse的3.5.2,1.5.7的PyDev)。例如:

Sometimes I cannot see right suggestions in auto-completion box (Eclipse 3.5.2, PyDev 1.5.7). For example:

import email
fp = open('my.eml', 'rb')
msg = email.message_from_file(fp)

信息现在是一个Message对象。而像get_payload功能()工作正常。

msg now is a Message object. And functions like get_payload() works fine.

msg.get_payload()

但我不明白 get_payload()中的自动完成列表。

我想的PyDev没有什么信息的想法,所以它不知道显示什么。

I think PyDev has no idea of what msg is, so it doesn't know what to show.

也许我应该导入其他的东西,不仅电子邮件模块?

Maybe I should import something else, not only email module?

在此先感谢!

推荐答案

有机会,目前的版本的PyDev一直没有去到一个点才能够从一个函数提取物( message_from_file()你的情况)知道它返回,以提供自动完成提示什么样的对象。

Chances are, the current PyDev build hasn't gone to a point to be able to extract from a function (message_from_file() in your case) to know what kind of object it returns in order to provide auto-completion hinting.

请参阅 http://sourceforge.net/projects/pydev/forums /论坛/ 293649 /主题/ 3697707

编辑:我相信这是在利益的PyDev支持新的Python 3函数的语法,的 PEP 3107 ,这将解决一些你的问题......在未来。

I believe there is interest in PyDev to support the new Python 3 function syntax, PEP 3107, which will solve some of your problems ... in the future.

这篇关于日食的PyDev自动建议不要在某些情况下工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆