[Python-checkins] CVS: python/dist/src/Lib string.py,1.46,1.47

Gerrit Holl gerrit.holl at pobox.com
Tue Feb 15 15:13:18 CET 2000

Adrian Eyre wrote on 950550999:
> > And what should ['a',3,None,[Tim(1),Tim(2)]].join(';') return?
> The same as string.join(['a',3,None,[Tim(1),Tim(2)]], ';') or
> ";".join(['a',3,None,[Tim(1),Tim(2)]])

>>> def Tim(i):
...     return i ** i ** i
>>> import string
>>> string.join(['a',3,None,[Tim(1),Tim(2)]], ';')
Traceback (innermost last):
  File "<stdin>", line 1, in ?
TypeError: first argument must be sequence of strings


Homepage: http://www.nl.linux.org/~gerrit
-----BEGIN GEEK CODE BLOCK----- http://www.geekcode.com
Version: 3.12
GCS dpu s-:-- a14 C++++>$ UL++ P--- L+++ E--- W++ N o? K? w--- !O
!M !V PS+ PE? Y? PGP-- t- 5? X? R- tv- b+(++) DI D+ G++ !e !r !y
-----END GEEK CODE BLOCK----- moc.edockeeg.www//:ptth

More information about the Python-list mailing list