Lines Matching full:chars
248 def strip(s, chars=None):
249 """strip(s [,chars]) -> string
253 If chars is given and not None, remove characters in chars instead.
254 If chars is unicode, S will be converted to unicode before stripping.
257 return s.strip(chars)
260 def lstrip(s, chars=None):
261 """lstrip(s [,chars]) -> string
264 If chars is given and not None, remove characters in chars instead.
267 return s.lstrip(chars)
270 def rstrip(s, chars=None):
271 """rstrip(s [,chars]) -> string
274 If chars is given and not None, remove characters in chars instead.
277 return s.rstrip(chars)
470 # Doesn't take non-printing chars into account, but does understand \n.