Re: Finding decorators in a file

2007-10-26 Thread Kay Schluehr
On Oct 27, 3:14 am, Andrew West <[EMAIL PROTECTED]> wrote: > Probably a bit of weird question. I realise decorators shouldn't be > executed until the function they are defined with are called, but is > there anyway for me to find all the decorates declared in a file when > I import it? Or perhaps

RE: Finding decorators in a file

2007-10-26 Thread Ryan Ginstrom
> On Behalf Of Andrew West > Basically what I'm looking for is a way to, given a python file, look > through that file and find all the decorators and the associated > functions, that includes any arguments that the decorator has. The inspect module has a function called "findsource" import ins