Thanks, Bruno! I actually don't care about the order of rows so request.vars.values() worked for me.
Excellent. On Monday, September 17, 2012 6:32:27 PM UTC-7, rochacbruno wrote: > > > You can do something like this: > > In [17]: request_vars = {'table[0][]': ['1', '2'], 'table[1][]': ['3', > '4']} > In [18]: table = request_vars.values() > In [19]: table[0] > Out[19]: ['1', '2'] > In [20]: table[1] > Out[20]: ['3', '4'] > > or to be sure about the sequence. > > In [25]: request_vars = {'table[0][]': ['1', '2'], 'table[1][]': ['3', > '4']} > In [26]: table = [request_vars['table[%s][]' % i] for i in > range(len(request_vars))] > In [27]: table[0] > Out[27]: ['1', '2'] > In [28]: table[1] > Out[28]: ['3', '4'] > > > > > > --