string bug/oddity?

Aahz Maruch aahz at
Mon Aug 13 06:13:38 CEST 2001

In article <3B77150B.9F8FC079 at>,
Peter Hansen  <peter at> wrote:
>Anything wrong with this, simpler, approach?
>>>> for x in a.keys():
>...     print '%s%s' % (x, a[x])

Even simpler and faster:

for x,y in a.items():
    print '%s%s' % (x,y)
                      --- Aahz  <*>  (Copyright 2001 by aahz at

Hugs and backrubs -- I break Rule 6       
Androgynous poly kinky vanilla queer het Pythonista   

Internet $tartup$: Arbeit ueber alles  

More information about the Python-list mailing list