Testing if a global is defined in a module
tim at johnsons-web.com
Mon Jul 4 20:01:31 EDT 2011
* Steven D'Aprano <steve+comp.lang.python at pearwood.info> [110704 15:48]:
> Tim Johnson wrote:
> >> It seems to me that your approach here is unnecessarily complex and
> >> fragile. I don't know what problem you are trying to solve, but trying to
> >> solve it by intraspecting differences that aren't differences is surely
> >> the wrong way to do it.
> > See my last post...
> Yes, but what are you actually *trying to do*? "Detecting data members" is
> not an end in itself. Why do you think you need to detect data members?
Steven, I'm building a documentation system. I have my own MVC framework
and the goal is to have a documentation module for each project.
Thanks again for the clarifications. I always learn a lot from
tim at johnsons-web dot com or akwebsoft dot com
More information about the Python-list