[ python-Bugs-1120862 ] Problem in join function definition

SourceForge.net noreply at sourceforge.net
Fri Feb 11 16:43:01 CET 2005


Bugs item #1120862, was opened at 2005-02-11 15:43
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1120862&group_id=5470

Category: Documentation
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: yseb (yseb)
Assigned to: Nobody/Anonymous (nobody)
Summary: Problem in join function definition

Initial Comment:
There is a problem in the last sentence of the join 
definition. 

==========================================
join( words[, sep]) 

Concatenate a list or tuple of words with intervening 
occurrences of sep. The default value for sep is a single 
space character. It is always true that "string.join
(string.split(s, sep), sep)" equals s. 
==========================================

It is true that string.join(string.split(s, sep), sep)" is 
always equals to s. 

But string.join(string.split(s)) is not always equals to s 
especially for repeated sequence of spaces.




----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1120862&group_id=5470


More information about the Python-bugs-list mailing list