On Fri, Jun 28, 2019 at 1:02 AM <dan@bauman.space> wrote:
Anyone experienced anything like this?
The behavior seems consistent but unexpected.
python 3.6 on both windows (10) and linux (ubuntu 18.04) seem to exhibit the same odd behavior.
something about a docker-image looking string seems to trigger this behavior. The behavior seems as expected for other strings.
Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.
sample_string_1 = "namespace/something-plugin-extra:dev"
print(sample_string_1.lstrip("namespace/something-plugin")) xtra:dev
Help on built-in function lstrip: lstrip(chars=None, /) method of builtins.str instance Return a copy of the string with leading whitespace removed. If chars is given and not None, remove characters in chars instead. This does NOT remove a leading substring. It removes a set of characters. ChrisA