tuple to string?

John Machin sjmachin at lexicon.net
Sat Jul 23 09:26:19 EDT 2005


Steven D'Aprano wrote:

> 
> 
>>>>''.join(map(lambda n: chr(n), (0x73, 0x70, 0x61, 0x6D)))
> 
> 'spam'

Why the verbal diarrhoea? What's wrong with the (already posted)

''.join(map(chr, (0x73, 0x70, 0x61, 0x6D)))

???



More information about the Python-list mailing list