"Stringizing" a list
Cees de Groot
cg at gaia.cdg.acriter.nl
Wed Aug 9 12:49:25 EDT 2000
Ole Martin Bjoerndalen <olemb at stud.cs.uit.no> said:
>import string
>
>def stringize(s):
> if type(s) == type(''):
> return s
> else:
> return string.join(map(stringize, s))
>
Yeah, that was the sort of solution I was looking for. Thanks.
--
Cees de Groot http://www.cdegroot.com <cg at cdegroot.com>
GnuPG 1024D/E0989E8B 0016 F679 F38D 5946 4ECD 1986 F303 937F E098 9E8B
Forge your CipherSaber and list it: http://www.xs4all.nl/~cg/ciphersaber/
More information about the Python-list
mailing list