
Aug. 27, 2017
11:47 p.m.
On Sun, Aug 27, 2017 at 4:27 PM, Greg Ewing <greg.ewing@canterbury.ac.nz> wrote:
Nathaniel Smith wrote:
- creating an sdist failed for unexpected reasons, that need a human to sort out (due to a broken system, or bugs – hey, they happen – or ...)
I think that should still be reported via an exception. Returning None should only be for the specific case that the backend doesn't support the requested operation.
Well, you can't exactly say "if your code is buggy, then you should signal that by doing this well defined thing" :-). One of my objections to None is that it's very easy to return accidentally, i.e., buggy code *will* sometimes return None no matter what the spec says. -n -- Nathaniel J. Smith -- https://vorpus.org