Home | History | Annotate | Download | only in python2.7

Lines Matching refs:sep

45 def capwords(s, sep=None):
46 """capwords(s [,sep]) -> string
50 join. If the optional second argument sep is absent or None,
53 sep is used to split and join the words.
56 return (sep or ' ').join(x.capitalize() for x in s.split(sep))
281 def split(s, sep=None, maxsplit=-1):
282 """split(s [,sep [,maxsplit]]) -> list of strings
284 Return a list of the words in the string s, using sep as the
286 maxsplit places (resulting in at most maxsplit+1 words). If sep
292 return s.split(sep, maxsplit)
296 def rsplit(s, sep=None, maxsplit=-1):
297 """rsplit(s [,sep [,maxsplit]]) -> list of strings
299 Return a list of the words in the string s, using sep as the
302 done. If sep is not specified or is None, any whitespace string
305 return s.rsplit(sep, maxsplit)
308 def join(words, sep = ' '):
309 """join(list [,sep]) -> string
312 intervening occurrences of sep. The default separator is a
318 return sep.join(words)