Hi Frederic, [...]
>>>> bas = {} >>>> for year in range (2010, 2013): > ba = st.runs ('BA', '%d-01-01' % year, '%d-12-31' % year) > ba.run () > print year, id (ba) > bas [year] = ba > > 2010 150289932 > 2011 150835852 > 2012 149727788 > >>>> for y in sorted (bas.keys ()): > b = bas [year] Shouldn't that be b = bas[y]? > print y, id (b) > > 2010 149727788 > 2011 149727788 > 2012 149727788 > [...] Cheers, Robert -- http://mail.python.org/mailman/listinfo/python-list