Message366879
The documentation should explain well the difference between removeprefix()/removesuffix() and lstrip()/strip()/rstrip(), since it is the rationale of the PEP ;-)
An example that can be used to explain the difference:
>>> "Monty Python".removesuffix(" Python")
'Monty'
>>> "Monty Python".strip(" Python")
'M' |
|
Date |
User |
Action |
Args |
2020-04-20 21:02:00 | vstinner | set | recipients:
+ vstinner, gvanrossum, doerwalter, rhettinger, eric.smith, steven.daprano, xtreak, Dennis Sweeney |
2020-04-20 21:02:00 | vstinner | set | messageid: <1587416520.22.0.861674666276.issue39939@roundup.psfhosted.org> |
2020-04-20 21:02:00 | vstinner | link | issue39939 messages |
2020-04-20 21:02:00 | vstinner | create | |
|