On 1 July 2017 at 22:53, Nathaniel Smith <[email protected]> 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 _______________________________________________ Distutils-SIG maillist - [email protected] https://mail.python.org/mailman/listinfo/distutils-sig
