Python and Code Completion

Discussion in 'Python' started by Madiba, Aug 11, 2003.

  1. Madiba

    Madiba Guest

    I noticed that ide's such as activestates visual python have a certain
    amount of code completion options, and i would love to implement something
    similiar in my own ide.
    eg when u type aclass().[dropdown with all methods here]
    also Idle has some of these functions,as well as displaying 'hints' eg when
    u type range([show hint here] (but idle sourcecode is to big for me try and
    figure out how it is done..)

    Can anybody please give me some pointers on how to get the available
    properties/documentation to a class etc without actually excecuting the
    code. Do i have to write my own semi-parser?
    I know help('class') displays doc and methods and automatically imports
    class, so is there maybe something similar to use?

    any ideas?
     
    Madiba, Aug 11, 2003
    #1
    1. Advertising

  2. Madiba

    Simon Burton Guest

    On Mon, 11 Aug 2003 19:39:09 +0200, Madiba wrote:

    ....
    > Can anybody please give me some pointers on how to get the available
    > properties/documentation to a class etc without actually excecuting the
    > code. Do i have to write my own semi-parser?
    > I know help('class') displays doc and methods and automatically imports
    > class, so is there maybe something similar to use?
    >
    > any ideas?


    check out the compiler module. Also, i think pydoc uses it.

    Simon.
     
    Simon Burton, Aug 11, 2003
    #2
    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. jason
    Replies:
    4
    Views:
    2,687
    jason
    Jun 2, 2005
  2. John
    Replies:
    3
    Views:
    9,261
    Rudy Schockaert
    Jan 17, 2004
  3. Stephan Deibel

    Re: Best Python IDE Code Completion!

    Stephan Deibel, Jan 15, 2004, in forum: Python
    Replies:
    0
    Views:
    416
    Stephan Deibel
    Jan 15, 2004
  4. Replies:
    4
    Views:
    978
    Stef Mientki
    Aug 11, 2008
  5. ziggs
    Replies:
    2
    Views:
    205
    Henry Robinson
    Apr 21, 2004
Loading...

Share This Page