Re: Get a list of functions in a file

2008-12-29 Thread member Basu
Thanks for all your replies, but the thing is I want to get the list of functions in that file itself, not by importing it as a module. I've decided to go with a class-based approach due to a number of other reasons, but I'm still interested in a way to get function name in that file itself. Thanks

Re: Get a list of functions in a file

2008-12-29 Thread Terry Reedy
member Basu wrote: I'm putting some utility functions in a file and then building a simple shell interface to them. Is their some way I can automatically get a list of all the functions in the file? I could wrap them in a class and then use attributes, but I'd rather leave them as simple functi

Re: Get a list of functions in a file

2008-12-29 Thread Aaron Brady
On Dec 29, 3:50 am, "Chris Rebert" wrote: > On Sun, Dec 28, 2008 at 11:26 PM, member Basu wrote: > > I'm putting some utility functions in a file and then building a simple > > shell interface to them. Is their some way I can automatically get a list of > > all the functions in the file? I could

Re: Get a list of functions in a file

2008-12-29 Thread Gabriel Genellina
En Mon, 29 Dec 2008 05:26:52 -0200, member Basu escribió: I'm putting some utility functions in a file and then building a simple shell interface to them. Is their some way I can automatically get a list of all the functions in the file? I could wrap them in a class and then use attributes,

Re: Get a list of functions in a file

2008-12-29 Thread Chris Rebert
On Sun, Dec 28, 2008 at 11:26 PM, member Basu wrote: > I'm putting some utility functions in a file and then building a simple > shell interface to them. Is their some way I can automatically get a list of > all the functions in the file? I could wrap them in a class and then use > attributes, but

Get a list of functions in a file

2008-12-28 Thread member Basu
I'm putting some utility functions in a file and then building a simple shell interface to them. Is their some way I can automatically get a list of all the functions in the file? I could wrap them in a class and then use attributes, but I'd rather leave them as simple functions. Thanks, Basu -- ht