![](https://secure.gravatar.com/avatar/ebf132362b622423ed5baca2988911b8.jpg?s=120&d=mm&r=g)
April 7, 2016
7:37 p.m.
On Apr 7, 2016, at 3:17 PM, Brett Cannon <brett@python.org> wrote:
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