Re: Problem with variables assigned to variables???
- From: Bruno Desthuilliers <bruno.42.desthuilliers@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 30 Apr 2008 12:37:24 +0200
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).
.
- References:
- Problem with variables assigned to variables???
- From: grepla
- Re: Problem with variables assigned to variables???
- From: Lutz Horn
- Re: Problem with variables assigned to variables???
- From: n00m
- Problem with variables assigned to variables???
- Prev by Date: crack the sims 2 hm stuff
- Next by Date: Re: computing with characters
- Previous by thread: Re: Problem with variables assigned to variables???
- Next by thread: Re: Problem with variables assigned to variables???
- Index(es):