In 2015 I asked a question about how to do something in Python, and got a great answer, with my requested functionality nicely wrapped in a function.
Now I've just received a new answer, which notes that as of Python 3.8, my requested functionality is built int to python.
I like the older answer because it works across many versions of Python, and I like the new answer because it shows the built-in functionality.
Note that this isn't a clear Python 2 / Python 3 split.
What's the best way to handle this?