On Fri, Jun 28, 2019 at 1:02 AM <[email protected]> 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
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/VLAXGKLNRGAL5QDCXW7L3GWTFQN7Y7ZD/