On Fri, Nov 28, 2014 at 2:04 PM, Shiyao Ma <i...@introo.me> wrote: > What if it's in the local namespace of a function or method? IDK, try > to get that thing first.
What if it's in multiple namespaces? What if it's not in any at all? Your solution is not going to work in the general case, AND it's a bad idea. Please don't do this in any code that I'll ever have to maintain. ChrisA -- https://mail.python.org/mailman/listinfo/python-list