ast wrote:
dir(config) provides a list, some processing is needed to remove some __identifiers__ and get a dictIs there a simple way to do that, without processing ?
Here's an alternative that leverages the import machinery.
d = {}
exec("from config import *", d)
del d['__builtins__']
--
Greg
--
https://mail.python.org/mailman/listinfo/python-list
