László Kiss Kollár <kiss.kollar.las...@gmail.com> added the comment:
The argument in lstrip() is a set of characters which are stripped from the string and not a full substring. As the documentation states: "The chars argument is not a prefix; rather, all combinations of its values are stripped" See https://docs.python.org/3/library/stdtypes.html#str.lstrip. ---------- nosy: +lkollar _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39880> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com