Re: [Tutor] Using join instead of string.joinfield

2005-08-23 Thread Harper, Gina
;> *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

Re: [Tutor] Using join instead of string.joinfield

2005-08-23 Thread Kent Johnson
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

Re: [Tutor] Using join instead of string.joinfield

2005-08-23 Thread Bernard Lebel
, '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

[Tutor] Using join instead of string.joinfield

2005-08-23 Thread Bernard Lebel
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