Re: Best Python IDE Code Completion!

Discussion in 'Python' started by Stephan Deibel, Jan 15, 2004.

  1. On Thu, 15 Jan 2004, Mirko Zeibig wrote:
    > Python is dynamically typed, so no editor in the world can guess the
    > type of any function parameters correctly. If you know about the true
    > nature of one, you may assist Wing IDE by using isinstance.
    >
    > class Klass(object):
    >
    > def hello(self):
    > print "Hello"
    >
    > def foo(bar):
    > assert isinstance(bar, Klass)
    > bar.hello()
    >
    > Without the assert line, it's impossible to detect which type bar has.
    > Only during runtime the type of bar is known.


    Note that you can also use the following form to cover cases where you run
    into circular imports:

    if 0:
    import mymod
    isinstance(bar, mymod.Klass)

    The source analyser still picks up on the hint but nothing is done at
    runtime.

    > John said the following on 01/15/2004 12:52 PM:
    > > Wing IDE seems converse. The editor auto list members is great but
    > > has no calltips. The interactive window has no completion at all.

    > I second this, though the editor sometimes need a bit of help ...
    > and I do not like the MDI approach they have.


    We're changing that and adding calltips too... If you want announcement
    of upcoming releases sign up here:

    http://wingide.com/announcelist

    Sorry, I can't currently reveal anything about expected release dates.

    > > Python has great introspective capabilities and we have a great open
    > > contributing community. What technical difficulties keep us from
    > > having REAL code completion like MS, Borland and several Java IDEs
    > > (All of which have been funded at one time or the other if not
    > > entirely - perhaps this is the reason?)


    Wing does static analysis of code (which can't use Python's introspection)
    because it can't rely on all code being executed (all classes
    instantiated, etc). Also, during editing code often is incorrect and
    won't run but we still want to update analysis information. It's not a
    trivial problem, esp. considering the need for speed, but it basically is
    doable for most Python code. Something like runtime introspection is a
    lot easier when appropriate, and ahem yes, we really should add that to
    our shell and debug probe tools!

    Stephan Deibel

    --
    Wing IDE for Python
    Archaeopteryx Software, Inc
    Take Flight!

    www.wingide.com
     
    Stephan Deibel, Jan 15, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Michael Schmid

    IDE - code completion

    Michael Schmid, Dec 12, 2004, in forum: VHDL
    Replies:
    1
    Views:
    659
  2. John
    Replies:
    3
    Views:
    9,231
    Rudy Schockaert
    Jan 17, 2004
  3. Let_Me_Be
    Replies:
    4
    Views:
    337
    Default User
    Aug 21, 2006
  4. gst
    Replies:
    10
    Views:
    412
  5. ziggs
    Replies:
    2
    Views:
    193
    Henry Robinson
    Apr 21, 2004
Loading...

Share This Page