Re: [Tutor] Automated function creation / outsourcing code

2009-03-31 Thread Noufal Ibrahim
Oxymoron wrote: 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 Pytho

Re: [Tutor] Automated function creation / outsourcing code

2009-03-31 Thread Eike Welk
On Saturday 28 March 2009, Martin Klimach wrote: > Is there a python editor, that can automatically turn a selection > of code into a function? Matching the input and return variables? > Look at "Rope IDE" it is fairly good at refactoring. It is very ugly and not very comfortable, but it works. Du

Re: [Tutor] Automated function creation / outsourcing code

2009-03-29 Thread Oxymoron
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

Re: [Tutor] Automated function creation / outsourcing code

2009-03-29 Thread W W
On Sat, Mar 28, 2009 at 5:34 AM, Martin Klimach wrote: > Is there a python editor, that can automatically turn a selection of > code into a function? Matching the input and return variables? > > I've never heard of one. I suppose you could probably write your own using regexes perhaps. -Wayne _

[Tutor] Automated function creation / outsourcing code

2009-03-28 Thread Martin Klimach
Hi, I started using python three months ago in order to create scripts for the abaqus fea software. The initial script became bigger and bigger and finding myself spending lots of time just trying to find the right part in the code, I started looking into making my first own module. Since I find i