Assignments and Variable Substitution

brad byte8bits at gmail.com
Mon Aug 13 13:00:42 EDT 2007


I'd like to do something like this:

var = '123'
%s = [], %var

So that, in the end, var is '123' and an empty list is named '123' as 
well. The list assignments are created during a loop.

Thanks,
Brad



More information about the Python-list mailing list