Testing if a global is defined in a module
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Mon Jul 4 19:33:04 EDT 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?
--
Steven
More information about the Python-list
mailing list