On 13 May 2016 at 17:06, Sven R. Kunze <srku...@mail.de> wrote: > As far as I remember, one goal of this proposal was to avoid wallet gardens. > During the lengthy discussion on python-ideas people brought up that some > third-party libs indeed subclass from str. They are currently locked out.
Hardly. Libraries that subclass from str will provide their string representation precisely by being (a subclass of) a string. So they don't need the __fspath__ protocol, and can continue to work exactly as now. This PEP merely provides the same capability for libraries that prefer *not* to subclass str. Paul _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com