Lonnie Princehouse wrote:
The real question, I suppose, is "what is a good technique to find
what
modules and classes implement or refer to particular names"
I think your best bet is still to import the module and introspect it.
It will execute some code, but (by convention) simply importing a
mod
[EMAIL PROTECTED] wrote:
Functions and classes are created during the very execution you're
trying to skip so there's no precise way to do what you want.
That said, you can parse the code without executing it, and that will
give you some information about defined functions and classes. It will
_n
Is there a good way to import python files without executing their content?
I'm trying some relfection based stuff and I want to be able to import a
module dynamically to check it's contents (class ad functions defined)
but without having any of the content executed.
For example:
---