+ .. note::
+ A Python core philosophy is: it's easier to ask forgiveness
+ than permission (https://docs.python.org/3/glossary.html#term-EAFP).
+ That is, code that just tries an operation and handles the set of
+ Exceptions that may arise is the preferred style. That said, this
+ function can still be useful in some situations.
+