def str_lstrip__Rope_None(space, w_self, w_chars): return W_RopeObject(rope.strip(w_self._node, left=True, right=False))
def str_rstrip__Rope_None(space, w_self, w_chars): return W_RopeObject(rope.strip(w_self._node, False, True))
def str_lstrip__Rope_Rope(space, w_self, w_chars): return W_RopeObject(rope.strip(w_self._node, True, False, _contains, w_chars._node.flatten_string()))
def unicode_rstrip__RopeUnicode_None(space, w_self, w_chars): return W_RopeUnicodeObject(rope.strip(w_self._node, False, True, _isspace))
def unicode_rstrip__RopeUnicode_RopeUnicode(space, w_self, w_chars): return W_RopeUnicodeObject(rope.strip(w_self._node, False, True, _contains, w_chars._node.flatten_unicode()))
def unicode_rstrip__RopeUnicode_RopeUnicode(space, w_self, w_chars): return W_RopeUnicodeObject( rope.strip(w_self._node, False, True, _contains, w_chars._node.flatten_unicode()))