Create object from variable indirect reference?

Hrvoje Niksic hniksic at xemacs.org
Tue Nov 10 16:46:34 CET 2009


NickC <reply-to at works.fine.invalid> writes:

> moon2 = ephem.${!options.body}()

moon2 = getattr(ephem, options.body)()



More information about the Python-list mailing list