On 06/06/07, Tal Einat <[EMAIL PROTECTED]> wrote:
>
> Hi all, (just joined the group)
>
> I've been developing IDLE over the past 2 years or so. Even before
> that, I helped a friend of mine, Noam Raphael, write IDLE's
> auto-completion, which is included in recent versions of IDLE.
>
> Noam wrote the original completion code from scratch, and AFAIK every
> Python IDE which features code completion has done the same. Surely
> there is -some- functionality which could be useful cross-IDE?
> Retrieving possible completions from the namespace, for example. And
> we should be learning from each-others' ideas and experiences.
>
> So how about we design a generic Python completion module, that
> each IDE could extend, and use for the completion logic?
>
> - Tal

I have just implemented a completion mockup using Rope (which is a
refactoring library). It works quite nicely, and definitely worth a
look.

http://rope.sourceforge.net/

It even achieves this kind of completion:

class Banana(object):
    def do_something(self):
         return

def foo():
    return [Banana(), Banana()]

foo()[0].<complete> includes do_something

Which seems pretty impressive to me.


Ali

Reply via email to