n00m a écrit :
for listmember in mylist: print listmember + ".shp", eval(listmember)
eval and exec are almost always the wrong solution. The right solution very often implies a dict or attribute lookup, either on custom dict or on one of the available namespaces (globals(), locals(), or a module, class or instance).
-- http://mail.python.org/mailman/listinfo/python-list