Depricated String Functions in Python

Steve Holden steve at holdenweb.com
Thu Jul 20 14:04:18 EDT 2006


Donn Cave wrote:
[...]
> 
> Oh, excellent - the string module is dead, long live
> the string module!  I can replace string.join with
> str.join, and never have to defile my code with that
> ' '.join(x) abomination.
> 
  >>> lst = ['Steve', 'Holden']
  >>> str.join(' ', lst)
'Steve Holden'
  >>>

Just so long as you don't complain about the arguments being in the 
wrong order ...

regards
  Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC/Ltd          http://www.holdenweb.com
Skype: holdenweb       http://holdenweb.blogspot.com
Recent Ramblings     http://del.icio.us/steve.holden




More information about the Python-list mailing list