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