Re: Parsing and Editing Source

2008-08-16 Thread Wilson
On Aug 16, 3:51 am, Benjamin <[EMAIL PROTECTED]> wrote: > On Aug 15, 9:21 am, "Paul Wilson" <[EMAIL PROTECTED]> wrote: > > > > > Hi all, > > > I'd like to be able to do the following to a python source file > > programmatically: > >  * Read in a source file > >  * Add/Remove/Edit Classes, methods,

Re: Parsing and Editing Source

2008-08-15 Thread Benjamin
On Aug 15, 9:21 am, "Paul Wilson" <[EMAIL PROTECTED]> wrote: > Hi all, > > I'd like to be able to do the following to a python source file > programmatically: >  * Read in a source file >  * Add/Remove/Edit Classes, methods, functions >  * Add/Remove/Edit Decorators >  * List the Classes >  * List

Re: Parsing and Editing Source

2008-08-15 Thread Wilson
On Aug 15, 4:16 pm, Rafe <[EMAIL PROTECTED]> wrote: > On Aug 15, 9:21 pm, "Paul Wilson" <[EMAIL PROTECTED]> wrote: > > > > > Hi all, > > > I'd like to be able to do the following to a python source file > > programmatically: > >  * Read in a source file > >  * Add/Remove/Edit Classes, methods, func

Re: Parsing and Editing Source

2008-08-15 Thread Rafe
On Aug 15, 9:21 pm, "Paul Wilson" <[EMAIL PROTECTED]> wrote: > Hi all, > > I'd like to be able to do the following to a python source file > programmatically: > * Read in a source file > * Add/Remove/Edit Classes, methods, functions > * Add/Remove/Edit Decorators > * List the Classes > * List

Re: Parsing and Editing Source

2008-08-15 Thread Wilson
On Aug 15, 3:45 pm, eliben <[EMAIL PROTECTED]> wrote: > On Aug 15, 4:21 pm, "Paul Wilson" <[EMAIL PROTECTED]> wrote: > > > > > Hi all, > > > I'd like to be able to do the following to a python source file > > programmatically: > >  * Read in a source file > >  * Add/Remove/Edit Classes, methods, fu

Re: Parsing and Editing Source

2008-08-15 Thread eliben
On Aug 15, 4:21 pm, "Paul Wilson" <[EMAIL PROTECTED]> wrote: > Hi all, > > I'd like to be able to do the following to a python source file > programmatically: >  * Read in a source file >  * Add/Remove/Edit Classes, methods, functions >  * Add/Remove/Edit Decorators >  * List the Classes >  * List

Parsing and Editing Source

2008-08-15 Thread Paul Wilson
Hi all, I'd like to be able to do the following to a python source file programmatically: * Read in a source file * Add/Remove/Edit Classes, methods, functions * Add/Remove/Edit Decorators * List the Classes * List the imported modules * List the functions * List methods of classes And the