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 b...@archlinux.us 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

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 b...@archlinux.us 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

Re: Get a list of functions in a file

2008-12-29 Thread Aaron Brady
On Dec 29, 3:50 am, Chris Rebert c...@rebertia.com wrote: On Sun, Dec 28, 2008 at 11:26 PM, member Basu b...@archlinux.us 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

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

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.

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 --