Bryan wrote:
How come dir(Foo) does not show __name__? That is how I was investigating the possibilities.
Interesting question. Seems like an oversight. dir(some_module) and dir(some_function) include '__name__'. I suggest you search the tracker for existing issues on this subject and add a feature request if there is none.
-- http://mail.python.org/mailman/listinfo/python-list