Message366882
When, I even expect that some people use .strip() whereas their intent was to use .lstrip():
>>> "Python vs Monty Python".strip("Python")
' vs Monty '
Again, strip() is used with a string whereas the real intent was to use removesuffix() which didn't exist ;-)
A note should be added to lstrip(), strip() and rstrip() documentation to point to removeprefix() and/or removesuffix(). |
|
| Date |
User |
Action |
Args |
| 2020-04-20 21:11:38 | vstinner | set | recipients:
+ vstinner, gvanrossum, doerwalter, rhettinger, eric.smith, steven.daprano, xtreak, Dennis Sweeney |
| 2020-04-20 21:11:38 | vstinner | set | messageid: <[email protected]> |
| 2020-04-20 21:11:38 | vstinner | link | issue39939 messages |
| 2020-04-20 21:11:38 | vstinner | create | |
|