1

I'm looking for an extension which will help in Python's auto complete feature in Python.

If I type the following code:

a = [4,5,6]
a.p

Then I expect it would give me a suggestion for pop as it is one of the method of Python list. Is this thing achievable in Emacs?

I tried installing Rope, Rope mode, Ropemacs and Pymacs. The auto-complete suggestion, I get from that aren't the methods of list. But it suggests me something like print etc. Am I doing something wrong ?

4

3 に答える 3

3

Jedi.elを試してみてください。AFAIK、それはあなたの例をサポートするはずです。

于 2013-01-21T01:56:08.273 に答える
0

Python 変数には型がないため、コード内の特定の時点で変数に含まれるオブジェクトのクラスを知ることは困難です。あなたのコードが後でa = 1. Emacs は、正しい補完を提供するために、変数 a がいつリストを参照し、いつ数値を参照するかを知る必要があります。通常、これは実際にコードを実行しないと不可能です。

于 2013-01-21T01:19:07.917 に答える