On Fri, 13 May 2016 at 14:30 Philip Jenvey <[email protected]> wrote:
> > On May 13, 2016, at 11:37 AM, Brett Cannon <[email protected]> wrote: > > Biggest changes since the second draft: > > 1. Resolve __fspath__() from the type, not the instance (for Guido) > > > if (PyObject_HasAttrString(path->ob_type, "__fspath__")) { > return PyObject_CallMethodObjArgs(path->ob_type, "__fspath__", > path, > NULL); > > > _PyObject_LookupSpecial would be preferable then. > Yes it would be. :) I'll add it to the PEP.
_______________________________________________ Python-Dev mailing list [email protected] https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
