Guilherme Polo wrote:
> Generating code like this is always dangerous.
Generating code isn't dangerous in itself. What's dangerous
is mixing hand-edited and generated code in the same file.
There's too much opportunity for hand edits to get wiped
out by subsequent automatic edits or vice versa.
On Feb 9, 5:47 am, "Guilherme Polo" <[EMAIL PROTECTED]> wrote:
> 2008/2/9, Alex <[EMAIL PROTECTED]>:
>
> > Which library could you recommend to perform simple editing of Python
> > code (from Python program)? For example, open *.py file, find specific
> > function definition, add another function
2008/2/9, Alex <[EMAIL PROTECTED]>:
> Guilherme Polo wrote:
> > 2008/2/9, Alex <[EMAIL PROTECTED]>:
> >
> >> Guilherme Polo wrote:
> >> > 2008/2/9, Arnaud Delobelle <[EMAIL PROTECTED]>:
> >> >
> >> >> On Feb 9, 12:32 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote:
> >> >> > 2008/2/9, Al
Guilherme Polo wrote:
> 2008/2/9, Alex <[EMAIL PROTECTED]>:
>
>> Guilherme Polo wrote:
>> > 2008/2/9, Arnaud Delobelle <[EMAIL PROTECTED]>:
>> >
>> >> On Feb 9, 12:32 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote:
>> >> > 2008/2/9, Alex <[EMAIL PROTECTED]>:
>> >> >
>> >> > > Guilherme
2008/2/9, Alex <[EMAIL PROTECTED]>:
> Guilherme Polo wrote:
> > 2008/2/9, Arnaud Delobelle <[EMAIL PROTECTED]>:
> >
> >> On Feb 9, 12:32 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote:
> >> > 2008/2/9, Alex <[EMAIL PROTECTED]>:
> >> >
> >> > > Guilherme Polo wrote:
> >> > > > 2008/2/9,
Guilherme Polo wrote:
> 2008/2/9, Arnaud Delobelle <[EMAIL PROTECTED]>:
>
>> On Feb 9, 12:32 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote:
>> > 2008/2/9, Alex <[EMAIL PROTECTED]>:
>> >
>> > > Guilherme Polo wrote:
>> > > > 2008/2/9, Alex <[EMAIL PROTECTED]>:
>>
>>
>> > > >> Which l
Guilherme Polo wrote:
> 2008/2/9, Arnaud Delobelle <[EMAIL PROTECTED]>:
>> On Feb 9, 12:32 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote:
>> > 2008/2/9, Alex <[EMAIL PROTECTED]>:
>> >
>> > > Guilherme Polo wrote:
>> > > > 2008/2/9, Alex <[EMAIL PROTECTED]>:
>>
>> > > >> Which library could
2008/2/9, Arnaud Delobelle <[EMAIL PROTECTED]>:
> On Feb 9, 12:32 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote:
> > 2008/2/9, Alex <[EMAIL PROTECTED]>:
> >
> > > Guilherme Polo wrote:
> > > > 2008/2/9, Alex <[EMAIL PROTECTED]>:
>
> >
> > > >> Which library could you recommend to perform si
On Feb 9, 12:32 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote:
> 2008/2/9, Alex <[EMAIL PROTECTED]>:
>
> > Guilherme Polo wrote:
> > > 2008/2/9, Alex <[EMAIL PROTECTED]>:
>
> > >> Which library could you recommend to perform simple editing of Python
> > >> code (from Python program)? For examp
On Feb 9, 6:10 am, Alex <[EMAIL PROTECTED]> wrote:
> Guilherme Polo wrote:
> > 2008/2/9, Alex <[EMAIL PROTECTED]>:
>
> >> Which library could you recommend to perform simple editing of Python
> >> code (from Python program)? For example, open *.py file, find specific
> >> function definition, add
2008/2/9, Alex <[EMAIL PROTECTED]>:
> Guilherme Polo wrote:
> > 2008/2/9, Alex <[EMAIL PROTECTED]>:
> >
> >> Which library could you recommend to perform simple editing of Python
> >> code (from Python program)? For example, open *.py file, find specific
> >> function definition, add another
Steven D'Aprano wrote:
> On Sat, 09 Feb 2008 14:38:29 +0300, Alex wrote:
>
>
>> Which library could you recommend to perform simple editing of Python
>> code (from Python program)?
>>
>
> I'm not even sure such a library exists.
>
Yes they exist, that field is called "code-generation",
Guilherme Polo wrote:
> 2008/2/9, Alex <[EMAIL PROTECTED]>:
>
>> Which library could you recommend to perform simple editing of Python
>> code (from Python program)? For example, open *.py file, find specific
>> function definition, add another function call inside, find existing
>> call and
Alex <[EMAIL PROTECTED]> writes:
> Which library could you recommend to perform simple editing of
> Python code (from Python program)? For example, open *.py file, find
> specific function definition, add another function call inside, find
> existing call and change parameter value, etc.
You migh
On Sat, 09 Feb 2008 14:38:29 +0300, Alex wrote:
> Which library could you recommend to perform simple editing of Python
> code (from Python program)?
I'm not even sure such a library exists.
> For example, open *.py file, find specific
> function definition, add another function call inside, f
2008/2/9, Alex <[EMAIL PROTECTED]>:
> Which library could you recommend to perform simple editing of Python
> code (from Python program)? For example, open *.py file, find specific
> function definition, add another function call inside, find existing
> call and change parameter value, etc.
>
Y
16 matches
Mail list logo