Fwiw I also agree return values are more robust, though the fact that an exception has a message is also a nice property since it allows backends to provide a reason they dont support sdist in this tree (which some tools may want to surface to users, particularly if they *need* a sdist, like a hypothetical 'twine sdist' command). That could be implemented by returning a Tuple though or something.
Sent from my iPhone > On Jul 17, 2017, at 9:12 AM, Thomas Kluyver <tho...@kluyver.me.uk> wrote: > >> On Mon, Jul 17, 2017, at 02:56 PM, Nick Coghlan wrote: >> If Thomas is OK with it, I'd be fine with using "raise >> NotImplementedError" for that purpose. > > I will implement this if it's what we decide, but I agree with Nathaniel > that a sentinel value is probably more robust, because return values > can't automatically bubble up from internal code like errors do. _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org https://mail.python.org/mailman/listinfo/distutils-sig