This is bypassing LWN's normal paywall using their subscriber link functionality, since I'm a paying subscriber. If you like LWN please consider subscribing - they're consistently some of the...
This is bypassing LWN's normal paywall using their subscriber link functionality, since I'm a paying subscriber. If you like LWN please consider subscribing - they're consistently some of the highest-quality Linux / FOSS journalism around.
The addition of removeprefix() and removesuffix() looks reasonably useful to me. I remember early on in my Python experience having some issues trying to get that exact functionality with the...
The addition of removeprefix() and removesuffix() looks reasonably useful to me. I remember early on in my Python experience having some issues trying to get that exact functionality with the existing string methods, so I'm happy to see these from both a "writing more readable code" and "UX for someone trying to figure out string methods" perspective.
This is bypassing LWN's normal paywall using their subscriber link functionality, since I'm a paying subscriber. If you like LWN please consider subscribing - they're consistently some of the highest-quality Linux / FOSS journalism around.
The addition of
removeprefix()
andremovesuffix()
looks reasonably useful to me. I remember early on in my Python experience having some issues trying to get that exact functionality with the existing string methods, so I'm happy to see these from both a "writing more readable code" and "UX for someone trying to figure out string methods" perspective.