Menu

#98 content assistant: assign __init__ parameters to attributes

closed-fixed
nobody
5
2006-05-07
2006-03-15
YoHell
No

It would be neat to be able to position myself after

def __init__(self, moo, cow):

and press Ctrl-1 and see a content assistant that lets
me assigns the values of moo and cow to instance
attributes with the same name, like so:
self.moo = moo
self.cow = cow

Thanks, and keep up the good work!
/Joel

Discussion

  • Fabio Zadrozny

    Fabio Zadrozny - 2006-04-03

    Logged In: YES
    user_id=617340

    I've just released 1.0.4, and it has a scripting engine so
    that you can add your own actions to pydev, and I was
    wondering if you would like to try it implementing something
    as a Ctrl+2+a (from assign) to do that (should be
    straightforward, and I can help you on the details).

    Cheers,

    Fabio

     
  • YoHell

    YoHell - 2006-04-03

    Logged In: YES
    user_id=1008220

    I'll be delighted :-)

    Could you point me to some starter docs to get me going?

    Take care!
    /Joel

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2006-05-07

    Logged In: YES
    user_id=617340

    Hi Joel,

    this one is done for 1.0.6... right? ;-)

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2006-05-07
    • status: open --> closed-fixed
     
  • YoHell

    YoHell - 2006-05-08

    Logged In: YES
    user_id=1008220

    Right.

    :-)
    /Joel