Michael Hoffman wrote:
def list_members(obj) l = dir(obj) return map(lambda x : eval('obj.'+x), l)
That works fine for me with Python 2.4.
x.question = "Are you sure?"
I should clarify. It works fine for me when I've already globally assigned obj to something else. D'oh!
--
Michael Hoffman
--
http://mail.python.org/mailman/listinfo/python-list