;>
*g*
-Original Message-
From: Bernard Lebel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 23, 2005 11:04 AM
To: Python Tutor list
Subject: [Tutor] Using join instead of string.joinfield
Hello,
The documentation says that the built-in join method now replaces the
string.joinfield
Bernard Lebel wrote:
> Hello,
>
> The documentation says that the built-in join method now replaces the
> string.joinfield function. However how do you achieve the same
> operation? The join method accepts only one argument, that is, the
> list of strings to join. How do you then specify the sepa
, 'a', 'list', 'of', 'words']
> >>> sep_char = '-'
> >>> print sep_char.join(a_list)
> this-is-a-list-of-words
> >>>
> *g*
> -Original Message-
> From: Bernard Lebel [mailto:[EMAIL PROTEC
Hello,
The documentation says that the built-in join method now replaces the
string.joinfield function. However how do you achieve the same
operation? The join method accepts only one argument, that is, the
list of strings to join. How do you then specify the separating
character?
Thanks
Bernar