Gracias !! Exactamente lo que queria... me parece que la documentacion que uso es demasiado basica, ya que la pagina que estoy utilizando como que no habla sobre funciones como iteritems:
http://es.diveintopython.org/odbchelper_dict.html#odbchelper.dictionarytypes Que me sugieren ? Creo que lo mejor seria leer la documentacion oficinal, sino voy a estar fastidiandolos siempre http://docs.python.org/tutorial/<http://docs.python.org/tutorial/datastructures.html#looping-techniques> 2010/9/6 Arnau Sanchez <pyar...@gmail.com> > On Mon, 6 Sep 2010 12:06:22 -0500 Carlos Herrera Polo wrote: > > > Lo que ocurre es que el diccionario me retorna algo como : > > > > ('A':[1,1,2],'B':[1,1,1,2,2],'C':[2,2]) > > pivot = {'A':[1,1,2],'B':[1,1,1,2,2],'C':[2,2]} > for name, num in sorted(pivot.iteritems()): > print name, num > > A [1, 1, 2] > B [1, 1, 1, 2, 2] > C [2, 2] > > http://docs.python.org/tutorial/datastructures.html#looping-techniques > _______________________________________________ > Python-es mailing list > Python-es@python.org > http://mail.python.org/mailman/listinfo/python-es > FAQ: http://python-es-faq.wikidot.com/ >
_______________________________________________ Python-es mailing list Python-es@python.org http://mail.python.org/mailman/listinfo/python-es FAQ: http://python-es-faq.wikidot.com/