Testing if a global is defined in a module
rantingrick
rantingrick at gmail.com
Mon Jul 4 17:30:16 EDT 2011
On Jul 4, 3:30 pm, Tim Johnson <t... at johnsons-web.com> wrote:
>
> Thanks for the reply: *but*
> dir(<targetmodule>) will also show globals from other modules imported
> by the target module. So I would need a way to distinguish between
> those imported and those defined in <targetmodule>
Okay, then do some processing on the source. You can use regexps or
the module mentioned earlier by Chris.
More information about the Python-list
mailing list