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. Advertisements

  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. Advertisements

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,862
    jason
    Jun 2, 2005
  2. Steven T. Hatton
    Replies:
    67
    Views:
    1,465
    David Harmon
    Jun 13, 2004
  3. John
    Replies:
    3
    Views:
    9,457
    Rudy Schockaert
    Jan 17, 2004
  4. Replies:
    4
    Views:
    1,097
    Stef Mientki
    Aug 11, 2008
  5. ziggs
    Replies:
    2
    Views:
    350
    Henry Robinson
    Apr 21, 2004
  6. Robert McKinnon

    RDoc, ri and code completion in jEdit

    Robert McKinnon, Feb 27, 2004, in forum: Ruby
    Replies:
    1
    Views:
    201
    Dave Thomas
    Feb 27, 2004
  7. S. Robert James
    Replies:
    2
    Views:
    200
    S. Robert James
    Mar 22, 2007
  8. lolveley

    code completion and Qt

    lolveley, May 26, 2009, in forum: Ruby
    Replies:
    1
    Views:
    155
    lolveley
    May 26, 2009
Loading...