Testing if a global is defined in a module
steve+comp.lang.python at pearwood.info
Tue Jul 5 01:33:04 CEST 2011
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?
More information about the Python-list