Python slicing is obfuscatory show-offery.
thing[-3:] vs thing.right(3)
It is the most overrated part of the language. If there were extension methods for str, I'd switch to that and expunge most slicing from my code.
Post
June 20, 2020
June 20, 2020
Python slicing is obfuscatory show-offery.
thing[-3:] vs thing.right(3)
It is the most overrated part of the language. If there were extension methods for str, I'd switch to that and expunge most slicing from my code.