Wow, I switched to Python 3 really early on and never knew about pathlib.
I think many people get imprinted with writing the PY3 code using only the features available at the time they switched over.
And collections.ChainMap.
And f-strings.
And yield from.
And type hints.
And statistics.
And ipadress.
And secrets.
And matmul.
And subprocess.run.
Come on, Python 3 is packed with awesomeness !
What you have is decision making analogous to the function
evaluate(string_interpolation, python_ecosystem)
which is different from evaluate(string_interpolation)This argument won't fly. Did you know that string interpolation in Perl and shell was always an opt-in feature? And despite that it was frowned upon by Python community.
While certainly awesome, these are in python 2.7 as well. Although I don't remember if they where in 2.7 first of back-ported to 2.7 from 3.