[GRASS-dev] python question
Michael Barton
michael.barton at asu.edu
Sat Jun 23 12:48:46 PDT 2012
This is probably simple but I'm missing something somewhere. How can I dynamically create variable names and then assign values to the variables? I need to do something along the lines of:
for i in flist:
's%_new' % i = 10
where flist is a list of strings (e.g., file names)
Thanks
Michael
_____________________
C. Michael Barton
Visiting Scientist, Integrated Science Program
National Center for Atmospheric Research &
University Consortium for Atmospheric Research
303-497-2889 (voice)
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20120623/660d31e9/attachment.html>
More information about the grass-dev
mailing list