* Chris Rebert <c...@rebertia.com> [110704 13:16]: > > > > What else can I do here? > > Look at the names in the module's import statements using the `ast` > module, and exclude those from the set of names defined in the module. > Won't work for `from foo import *`, but that's bad practice and should > be refactored anyway. I'm completely new to the `ast' module, so I will have to research that one. Thanks for the tip -- Tim tim at johnsons-web dot com or akwebsoft dot com http://www.akwebsoft.com -- http://mail.python.org/mailman/listinfo/python-list
- Testing if a global is defined in a module Tim Johnson
- Re: Testing if a global is defined in a module Chris Rebert
- Re: Testing if a global is defined in a module Tim Johnson
- Re: Testing if a global is defined in a module rantingrick
- Re: Testing if a global is defined in a module Tim Johnson
- Re: Testing if a global is defined in a module rantingrick
- Re: Testing if a global is defined in a modul... Tim Johnson
- Re: Testing if a global is defined in a module Steven D'Aprano
- Re: Testing if a global is defined in a modul... Tim Johnson
- Re: Testing if a global is defined in a modul... Steven D'Aprano
- Re: Testing if a global is defined in a m... Tim Johnson
- Re: Testing if a global is defined i... Chris Angelico
- Re: Testing if a global is defin... Tim Johnson