[Python-es] mensajes rebotados

2010-05-01 Por tema Milton Galo Patricio Inostroza Aguilera
al enviar mensajes me sale lo siguiente: Delivery to the following recipient failed permanently: python-es@python.org Technical details of permanent failure: Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider fo

Re: [Python-es] "Reducir" un diccionario usando un subconjunto de claves

2010-05-01 Por tema Francesc Alted
A Saturday 01 May 2010 10:39:19 Arnau Sanchez escrigué: > On 01/05/10 00:51, Rolando Espinoza La Fuente wrote: > >> %timeit dict((k, d[k]) for k in subkeys) > >> 10 loops, best of 3: 6.99 µs per loop > > > > %timeit dict([(k, d[k]) for k in subkeys]) > > 10 loops, best of 3: 5.82 µs per loo

Re: [Python-es] "Reducir" un diccionario usando un subconjunto de claves

2010-05-01 Por tema Arnau Sanchez
On 01/05/10 00:51, Rolando Espinoza La Fuente wrote: %timeit dict((k, d[k]) for k in subkeys) 10 loops, best of 3: 6.99 µs per loop %timeit dict([(k, d[k]) for k in subkeys]) 10 loops, best of 3: 5.82 µs per loop Pero esto hay que explicarlo: con pocos elementos una lista por compr