I think you're looking for refactoring features, in this particular case, a compose method/function refactor.
Generally, generic editors will have trouble doing this right since it requires some inferencing capability on the selected code, your best bet is probably googling Python-aware IDEs with refactoring support, something like PyDev (http://pydev.sourceforge.net) or eric (http://eric-ide.python-projects.org/). -- K On Sun, Mar 29, 2009 at 11:31 PM, W W <[email protected]> wrote: > On Sat, Mar 28, 2009 at 5:34 AM, Martin Klimach <[email protected]> > wrote: >> >> <snip>Is there a python editor, that can automatically turn a selection of >> code into a function? Matching the input and return variables? >> <snip> > > I've never heard of one. I suppose you could probably write your own using > regexes perhaps. > > -Wayne > > > _______________________________________________ > Tutor maillist - [email protected] > http://mail.python.org/mailman/listinfo/tutor > > -- There is more to life than increasing its speed. -- Mahatma Gandhi _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
