Am Donnerstag, 19. Mai 2005 11:27 schrieb hong Yu: > >>> str.join(a) > > Traceback (most recent call last): > File "<stdin>", line 1, in ? > TypeError: descriptor 'join' requires a 'str' object but received a 'list' > > What's the difference between str and 'hello' ?
str.join("",a) <=> "".join(a) (<=> as in equivalence relation) HTH! -- --- Heiko. listening to: Bjork Guðmundsdottir & Trio - Luktar-Gvendur see you at: http://www.stud.mh-hannover.de/~hwundram/wordpress/
pgpuGp5l6jjVT.pgp
Description: PGP signature
-- http://mail.python.org/mailman/listinfo/python-list