[Distutils] PEP 517 again

Donald Stufft donald at stufft.io
Fri Aug 25 12:45:36 EDT 2017

> On Aug 25, 2017, at 12:38 PM, xoviat <xoviat at gmail.com> wrote:
> According to the documentation, NotImplemented isn't appropriate either, as is for binary operations only. There is no one value that's taylor made for this situation, but an exception may be more appropriate as the underlying cause is probably an error.

The underlying cause is *not* an error just the same as it’s not an error for a __eq__ to not know how to test equality against a specific `other`. The underlying cause is explicitly “I do not want to or know how to handle this case” not “I’ve accidentally called some code that wasn’t implemented yet”. The use case is almost exactly the same as the binop use case.

Donald Stufft

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20170825/57af5d50/attachment-0001.html>

More information about the Distutils-SIG mailing list