On Wed, May 20, 2020 at 12:44 PM Henk-Jaap Wagenaar <
wagenaarhenkj...@gmail.com> wrote:

> foobar.removesuffix('=').removesuffix('=')
>
> would work right now in 3.9 (I think).
> <http://python.org/psf/codeofconduct/>
>

Can confirm:

```
>>> 'abc==='.removesuffix('=').removesuffix('=')
'abc='
>>> 'abc=='.removesuffix('=').removesuffix('=')
'abc'
>>> 'abc='.removesuffix('=').removesuffix('=')
'abc'
>>> 'abc'.removesuffix('=').removesuffix('=')
'abc'
```
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/X4J5UU44NCKOYURS45VQJWPJUJEU6A3F/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to