On Wed, May 20, 2020 at 12:44 PM Henk-Jaap Wagenaar <
[email protected]> 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 -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/X4J5UU44NCKOYURS45VQJWPJUJEU6A3F/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to