Vivek Vashist <vivekvash...@gmail.com> added the comment:

Noticed that new removeprefix() and removesuffix() functions that were added in 
3.9 have slash notation added in Built-in Types document.

str.removeprefix(prefix, /)
str.removesuffix(suffix, /)

https://docs.python.org/3/library/stdtypes.html#str.removeprefix
https://docs.python.org/3/library/stdtypes.html#str.removesuffix

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46092>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to