The ternary operator one-liner is backwards-compatible while the ABC is only forward-compatible.
I like the idea of doing both. Make a __fspath__ method and pathlib.fspath that uses it, and then have
an ABC that checks for the existence of __fspath__.
-----------------
Donald Stufft
PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA