[Distutils] A possible refactor/streamlining of PEP 517
Robert Collins
robertc at robertcollins.net
Thu Jul 6 06:09:22 EDT 2017
On 1 July 2017 at 22:53, Nathaniel Smith <njs at pobox.com> wrote:
> Hi all,
....
> If either hook is missing, or returns the built-in constant
> ``NotImplemented``. (Note that this is the object ``NotImplemented``,
> *not* the string ``"NotImplemented"``),
thank you for the clarification.
I am unclear why you *return* that rather than raising
NotImplementedError ? NotImplementedError permits embedding details
about the cause of the failure, whereas the singleton does not.
It seems to me cleaner - thinking in a type sense - to raise than to
return a value from a different domain.
-Rob
More information about the Distutils-SIG
mailing list