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

Lines Matching refs:maxsplit

104 def split(s, sep=None, maxsplit=0):
105 """split(str [,sep [,maxsplit]]) -> list of strings
108 delimiter string. If maxsplit is nonzero, splits into at most
109 maxsplit words If sep is not specified, any whitespace string
110 is a separator. Maxsplit defaults to 0.
115 return s.split(sep, maxsplit)
402 def replace(s, old, new, maxsplit=0):
403 """replace (str, old, new[, maxsplit]) -> string
406 old replaced by new. If the optional argument maxsplit is
407 given, only the first maxsplit occurrences are replaced.
410 return s.replace(old, new, maxsplit)