[Tutor] Hmm...I should be able to figure this out...but...

Francis Moore Francis.Moore at shaws.co.uk
Wed Jul 21 13:19:37 CEST 2004


From: Dick Moores [mailto:rdm at rcblue.com] 

> print ''.join(rstring)
> Sorry for what is surely a dumb question, but
> what is the  ".  in print ''.join(rstring). 
> Can't find this anywhere in the Python docs.

This is a Pythonic way of calling the string method 
join() to concatenate all the elements of the 
sequence 'rstring'. The call uses an empty string ('') 
as an intermediate/temporary object to hold the result. 

Hope this helps,
Francis. 
  
CONFIDENTIALITY NOTICE 
This communication contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any distribution, copying or use of this communication or the information in it is strictly prohibited. If you have received this communication in error please notify us by e-mail or by telephone (+44(0) 1322 621100) and then delete the e-mail and any copies of it.  
This communication is from Shaw & Sons Limited whose registered office is at Shaway House, 21 Bourne Park, Bourne Road, Crayford, Kent DA1 4BZ. The views expressed in this communication may not be the views held by Shaw & Sons Limited. 
This message has been checked for all known viruses by McAfee VirusScan. 
 


More information about the Tutor mailing list